Commit dbdf927e authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

cmd: Merge two if blocks.

parent 8d6f9e30
......@@ -1161,10 +1161,7 @@ void WCMD_run_program (WCHAR *command, int called) {
launched = TRUE;
/* Special case BAT and CMD */
if (ext && !strcmpiW(ext, batExt)) {
WCMD_batch (thisDir, command, called, NULL, INVALID_HANDLE_VALUE);
return;
} else if (ext && !strcmpiW(ext, cmdExt)) {
if (ext && (!strcmpiW(ext, batExt) || !strcmpiW(ext, cmdExt))) {
WCMD_batch (thisDir, command, called, NULL, INVALID_HANDLE_VALUE);
return;
} else {
......
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