Skip to content

Commit

Permalink
mwrap: Forward the exit status of the compiler properly on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mid-kid committed Jul 26, 2023
1 parent ab49477 commit 1d71c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cw/mwrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ int _tmain(int argc, _TCHAR *argv[])
}
int exitcode;
waitpid(pid, &exitcode, 0);
if (exitcode) return exitcode;
if (WEXITSTATUS(exitcode)) return WEXITSTATUS(exitcode);
#endif

if (wine) free(wine);
Expand Down

0 comments on commit 1d71c94

Please sign in to comment.