From 6c353bd330abc345fa8045f208f2d56efe70fc0f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Dec 2015 09:40:29 +0530 Subject: [PATCH] ... --- setup/installer/windows/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup/installer/windows/main.c b/setup/installer/windows/main.c index 18a64b33dc..96340532e2 100644 --- a/setup/installer/windows/main.c +++ b/setup/installer/windows/main.c @@ -98,13 +98,14 @@ static ENTRYPROC load_launcher_dll() { int __stdcall start_here() { int ret = 0; ENTRYPROC entrypoint = load_launcher_dll(); - if (!entrypoint) return 1; + if (entrypoint) { #ifdef GUI_APP - // This should really be returning the value set in the WM_QUIT message, but I cannot be bothered figuring out how to get that. - entrypoint(BASENAME, MODULE, FUNCTION, 1); + // This should really be returning the value set in the WM_QUIT message, but I cannot be bothered figuring out how to get that. + entrypoint(BASENAME, MODULE, FUNCTION, 1); #else - ret = entrypoint(BASENAME, MODULE, FUNCTION, 0); + ret = entrypoint(BASENAME, MODULE, FUNCTION, 0); #endif + } else ret = 1; ExitProcess(ret); return ret; }