cmd: Merge two if blocks.

This commit is contained in:
Frédéric Delanoy 2011-12-20 14:48:24 +01:00 committed by Alexandre Julliard
parent 8d6f9e3036
commit dbdf927e74

View file

@ -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 {