cmd.exe: Fix regression when launching a fully qualified program.

This commit is contained in:
Jason Edmeades 2007-04-11 22:25:54 +01:00 committed by Alexandre Julliard
parent 2f5bfc0f78
commit 53c05cb534
1 changed files with 1 additions and 1 deletions

View File

@ -837,8 +837,8 @@ void WCMD_run_program (char *command, int called) {
/* Convert eg. ..\fred to include a directory by removing file part */
GetFullPathName(param1, sizeof(pathtosearch), pathtosearch, NULL);
lastSlash = strrchr(pathtosearch, '\\');
if (lastSlash && strchr(lastSlash, '.') != NULL) extensionsupplied = TRUE;
if (lastSlash) *lastSlash = 0x00;
if (strchr(lastSlash, '.') != NULL) extensionsupplied = TRUE;
strcpy(stemofsearch, lastSlash+1);
}