cmd.exe: Fix regression when launching a fully qualified program.
This commit is contained in:
parent
2f5bfc0f78
commit
53c05cb534
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue