/[emacs]/emacs/src/w32proc.c
ViewVC logotype

Diff of /emacs/src/w32proc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.51 by jasonr, Fri May 3 20:35:38 2002 UTC revision 1.52 by raeburn, Mon Jul 15 00:00:37 2002 UTC
# Line 760  sys_spawnve (int mode, char *cmdname, ch Line 760  sys_spawnve (int mode, char *cmdname, ch
760      }      }
761    
762    /* make sure argv[0] and cmdname are both in DOS format */    /* make sure argv[0] and cmdname are both in DOS format */
763    cmdname = XSTRING (program)->data;    cmdname = SDATA (program);
764    unixtodos_filename (cmdname);    unixtodos_filename (cmdname);
765    argv[0] = cmdname;    argv[0] = cmdname;
766    
# Line 784  sys_spawnve (int mode, char *cmdname, ch Line 784  sys_spawnve (int mode, char *cmdname, ch
784          strcpy (cmdname, egetenv ("CMDPROXY"));          strcpy (cmdname, egetenv ("CMDPROXY"));
785        else        else
786          {          {
787            strcpy (cmdname, XSTRING (Vinvocation_directory)->data);            strcpy (cmdname, SDATA (Vinvocation_directory));
788            strcat (cmdname, "cmdproxy.exe");            strcat (cmdname, "cmdproxy.exe");
789          }          }
790        unixtodos_filename (cmdname);        unixtodos_filename (cmdname);
# Line 1723  All path elements in FILENAME are conver Line 1723  All path elements in FILENAME are conver
1723    filename = Fexpand_file_name (filename, Qnil);    filename = Fexpand_file_name (filename, Qnil);
1724    
1725    /* luckily, this returns the short version of each element in the path.  */    /* luckily, this returns the short version of each element in the path.  */
1726    if (GetShortPathName (XSTRING (filename)->data, shortname, MAX_PATH) == 0)    if (GetShortPathName (SDATA (filename), shortname, MAX_PATH) == 0)
1727      return Qnil;      return Qnil;
1728    
1729    CORRECT_DIR_SEPS (shortname);    CORRECT_DIR_SEPS (shortname);
# Line 1747  All path elements in FILENAME are conver Line 1747  All path elements in FILENAME are conver
1747    /* first expand it.  */    /* first expand it.  */
1748    filename = Fexpand_file_name (filename, Qnil);    filename = Fexpand_file_name (filename, Qnil);
1749    
1750    if (!w32_get_long_filename (XSTRING (filename)->data, longname, MAX_PATH))    if (!w32_get_long_filename (SDATA (filename), longname, MAX_PATH))
1751      return Qnil;      return Qnil;
1752    
1753    CORRECT_DIR_SEPS (longname);    CORRECT_DIR_SEPS (longname);

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26