Skip to content

Commit e96751e

Browse files
authored
Change main return type to void and use ExitProcess
1 parent 6d05416 commit e96751e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/pylauncher/pylauncher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static const wchar_t* get_script_path(const wchar_t* launcher_path) {
157157
return script_path_tools;
158158
}
159159

160-
int main() {
160+
void main() {
161161
// Setting EMCC_LAUNCHER_DEBUG enabled debug output for the launcher itself.
162162
launcher_debug = GetEnvironmentVariableW(L"EMCC_LAUNCHER_DEBUG", NULL, 0);
163163

@@ -229,5 +229,5 @@ int main() {
229229
CloseHandle(pi.hThread);
230230

231231
dbg("pylauncher: done: %d\n", exit_code);
232-
return exit_code;
232+
ExitProcess(exit_code);
233233
}

0 commit comments

Comments
 (0)