diff --git a/programs/start/start.c b/programs/start/start.c index 6faa62e5b5..ac8061c3b4 100644 --- a/programs/start/start.c +++ b/programs/start/start.c @@ -391,8 +391,9 @@ int wmain (int argc, WCHAR *argv[]) if (!sei.lpDirectory) sei.lpDirectory = parent_directory = get_parent_dir(dos_filename); sei.fMask &= ~SEE_MASK_FLAG_NO_UI; + } - if (GetBinaryTypeW(sei.lpFile, &binary_type)) { + if (GetBinaryTypeW(sei.lpFile, &binary_type)) { WCHAR *commandline; STARTUPINFOW startup_info; PROCESS_INFORMATION process_information; @@ -425,8 +426,7 @@ int wmain (int argc, WCHAR *argv[]) } sei.hProcess = process_information.hProcess; goto done; - } - } + } if (!ShellExecuteExW(&sei)) {