Watchdog: Fix unloading if no GlosSIWindow was found

pull/192/head
Peter Repukat 2 years ago
parent 3903f38c0e
commit 655d3b0853

@ -60,6 +60,7 @@ DWORD WINAPI watchdog(HMODULE hModule)
if (!glossi_hwnd)
{
spdlog::error("Couldn't find GlosSITarget window. Exiting...");
FreeLibraryAndExitThread(hModule, 1);
return 1;
}
spdlog::debug("Found GlosSITarget window; Starting watch loop");

Loading…
Cancel
Save