Avoid crash in WCMD_run_program when no extension was specified.

This commit is contained in:
Oleg Prokhorov 2003-08-22 05:01:59 +00:00 committed by Alexandre Julliard
parent 261b97afbf
commit 7ffb4ed075

View file

@ -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);