mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
d337aee373
commit
6c353bd330
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user