mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 02:44:46 +00:00
cmd: Merge two if blocks.
This commit is contained in:
parent
8d6f9e3036
commit
dbdf927e74
|
@ -1161,10 +1161,7 @@ void WCMD_run_program (WCHAR *command, int called) {
|
||||||
launched = TRUE;
|
launched = TRUE;
|
||||||
|
|
||||||
/* Special case BAT and CMD */
|
/* Special case BAT and CMD */
|
||||||
if (ext && !strcmpiW(ext, batExt)) {
|
if (ext && (!strcmpiW(ext, batExt) || !strcmpiW(ext, cmdExt))) {
|
||||||
WCMD_batch (thisDir, command, called, NULL, INVALID_HANDLE_VALUE);
|
|
||||||
return;
|
|
||||||
} else if (ext && !strcmpiW(ext, cmdExt)) {
|
|
||||||
WCMD_batch (thisDir, command, called, NULL, INVALID_HANDLE_VALUE);
|
WCMD_batch (thisDir, command, called, NULL, INVALID_HANDLE_VALUE);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue