mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
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
Block a user