This commit is contained in:
Kovid Goyal 2015-12-11 09:40:29 +05:30
parent d337aee373
commit 6c353bd330
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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);
#else
ret = entrypoint(BASENAME, MODULE, FUNCTION, 0);
#endif
} else ret = 1;
ExitProcess(ret);
return ret;
}