Avoid crash in WCMD_run_program when no extension was specified.
This commit is contained in:
parent
261b97afbf
commit
7ffb4ed075
|
@ -505,7 +505,8 @@ char filetorun[MAX_PATH];
|
|||
WCMD_batch (param1, command, 0);
|
||||
return;
|
||||
}
|
||||
if (strpbrk( ext, "/\\:" )) ext = NULL;
|
||||
|
||||
if (ext && strpbrk( ext, "/\\:" )) ext = NULL;
|
||||
if (!ext)
|
||||
{
|
||||
strcpy (filetorun, param1);
|
||||
|
|
Loading…
Reference in New Issue