mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[host] fix the return code for the platform specific init
This commit is contained in:
parent
dcd0cb7d8e
commit
536df254e0
@ -182,7 +182,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
|
|
||||||
GetModuleFileName(NULL, app.executable, sizeof(app.executable));
|
GetModuleFileName(NULL, app.executable, sizeof(app.executable));
|
||||||
if (HandleService(app.argc, app.argv))
|
if (HandleService(app.argc, app.argv))
|
||||||
return 0;
|
return LG_HOST_EXIT_FAILED;
|
||||||
|
|
||||||
/* this is a bit of a hack but without this --help will produce no output in a windows command prompt */
|
/* this is a bit of a hack but without this --help will produce no output in a windows command prompt */
|
||||||
if (!IsDebuggerPresent() && AttachConsole(ATTACH_PARENT_PROCESS))
|
if (!IsDebuggerPresent() && AttachConsole(ATTACH_PARENT_PROCESS))
|
||||||
@ -252,7 +252,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
if (!(class = RegisterClassEx(&wx)))
|
if (!(class = RegisterClassEx(&wx)))
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Failed to register message window class");
|
DEBUG_ERROR("Failed to register message window class");
|
||||||
result = -1;
|
result = LG_HOST_EXIT_FAILED;
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
if (!lgCreateThread("appThread", appThread, NULL, &thread))
|
if (!lgCreateThread("appThread", appThread, NULL, &thread))
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Failed to create the main application thread");
|
DEBUG_ERROR("Failed to create the main application thread");
|
||||||
result = -1;
|
result = LG_HOST_EXIT_FAILED;
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,7 +295,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
else if (bRet < 0)
|
else if (bRet < 0)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Unknown error from GetMessage");
|
DEBUG_ERROR("Unknown error from GetMessage");
|
||||||
result = -1;
|
result = LG_HOST_EXIT_FAILED;
|
||||||
goto shutdown;
|
goto shutdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user