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 __stdcall start_here() {
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
ENTRYPROC entrypoint = load_launcher_dll();
|
ENTRYPROC entrypoint = load_launcher_dll();
|
||||||
if (!entrypoint) return 1;
|
if (entrypoint) {
|
||||||
#ifdef GUI_APP
|
#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.
|
// 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);
|
entrypoint(BASENAME, MODULE, FUNCTION, 1);
|
||||||
#else
|
#else
|
||||||
ret = entrypoint(BASENAME, MODULE, FUNCTION, 0);
|
ret = entrypoint(BASENAME, MODULE, FUNCTION, 0);
|
||||||
#endif
|
#endif
|
||||||
|
} else ret = 1;
|
||||||
ExitProcess(ret);
|
ExitProcess(ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user