From 49ec12fd5ff17e5759b591a37ea6841d3189287f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 9 Feb 2022 21:24:24 +0000 Subject: fix(#1): detach instead of join, we don't care about NtQueryObject --- soyuz/soyuz.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soyuz/soyuz.cc b/soyuz/soyuz.cc index b88b76b..6ea908f 100644 --- a/soyuz/soyuz.cc +++ b/soyuz/soyuz.cc @@ -88,7 +88,6 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int show) { soyuz::log("hooked lunar client"); soyuz::log("you may now close this window"); while (!stop.stop_requested()) { - /** * Check if Lunar Client is open before every `delete_handle` run, if not; timeout * @@ -113,9 +112,10 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int show) { } soyuz::log("requesting exit"); - soyuz.request_stop(); soyuz.join(); + soyuz.request_stop(); soyuz.detach(); soyuz::log("exiting"); soyuz::close_log_file(); + return (int)messages.wParam; } -- cgit v1.2.3