This commit is contained in:
german 2026-01-30 20:44:18 +04:00
parent ab230ab630
commit 5ca6bd7979
2 changed files with 4 additions and 4 deletions

BIN
wincmd

Binary file not shown.

View File

@ -95,6 +95,10 @@ int _lib_wincmd_main(int argc, char** argv) {
pos ++; pos ++;
} }
int stat; 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) { if (get_command == true) {
stat = system(command_buffer); stat = system(command_buffer);
if (stat != EXIT_SUCCESS) { if (stat != EXIT_SUCCESS) {
@ -103,10 +107,6 @@ int _lib_wincmd_main(int argc, char** argv) {
} }
return EXIT_SUCCESS; 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) { if ((stat = system("wine cmd.exe")) != EXIT_SUCCESS) {
printf("\033[1mwincmd: \033[91mThe program terminates with status %d!\033[0m\n", stat); printf("\033[1mwincmd: \033[91mThe program terminates with status %d!\033[0m\n", stat);
return EXIT_FAILURE; return EXIT_FAILURE;