Commit 7ffb4ed0 authored by Oleg Prokhorov's avatar Oleg Prokhorov Committed by Alexandre Julliard

Avoid crash in WCMD_run_program when no extension was specified.

parent 261b97af
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment