diff --git a/wincmd b/wincmd index 9f1a1ae..0b02205 100755 Binary files a/wincmd and b/wincmd differ diff --git a/wincmd.h b/wincmd.h index 529ea65..db5eed5 100644 --- a/wincmd.h +++ b/wincmd.h @@ -95,6 +95,10 @@ int _lib_wincmd_main(int argc, char** argv) { pos ++; } int stat; + if (system("echo -n \"Wine API (CMD) \" && wine --version") != EXIT_SUCCESS) { + wincmd_error("Unable to find critical dependencies for running the CMD.EXE shell!"); + return EXIT_FAILURE; + } if (get_command == true) { stat = system(command_buffer); if (stat != EXIT_SUCCESS) { @@ -103,10 +107,6 @@ int _lib_wincmd_main(int argc, char** argv) { } return EXIT_SUCCESS; } - if (system("echo -n \"Wine API (CMD) \" && wine --version") != EXIT_SUCCESS) { - wincmd_error("Unable to find critical dependencies for running the CMD.EXE shell!"); - return EXIT_FAILURE; - } if ((stat = system("wine cmd.exe")) != EXIT_SUCCESS) { printf("\033[1mwincmd: \033[91mThe program terminates with status %d!\033[0m\n", stat); return EXIT_FAILURE;