From 24d2849dfafcf6f3c42b2f10c742dd76e65ab022 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Sep 2012 18:40:19 +0530 Subject: [PATCH] Always return 0 from the GUI entry point in windows --- setup/installer/windows/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup/installer/windows/main.c b/setup/installer/windows/main.c index 780be94330..56a022cb97 100644 --- a/setup/installer/windows/main.c +++ b/setup/installer/windows/main.c @@ -11,7 +11,6 @@ wWinMain(HINSTANCE Inst, HINSTANCE PrevInst, wchar_t *CmdLine, int CmdShow) { wchar_t *stdout_redirect, *stderr_redirect, basename[50]; - int ret = 0; set_gui_app((char)1); @@ -20,7 +19,7 @@ wWinMain(HINSTANCE Inst, HINSTANCE PrevInst, stdout_redirect = redirect_out_stream(basename, (char)1); stderr_redirect = redirect_out_stream(basename, (char)0); - ret = execute_python_entrypoint(BASENAME, MODULE, FUNCTION, + execute_python_entrypoint(BASENAME, MODULE, FUNCTION, stdout_redirect, stderr_redirect); if (stdout != NULL) fclose(stdout); @@ -29,7 +28,7 @@ wWinMain(HINSTANCE Inst, HINSTANCE PrevInst, DeleteFile(stdout_redirect); DeleteFile(stderr_redirect); - return ret; + return 0; // This should really be returning the value set in the WM_QUIT message, but I cannot be bothered figuring out how to get that. } #else