mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 19:33:38 +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;
|
||||
|
||||
/* 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 {
|
||||
|
|
Loading…
Reference in a new issue