util simplify

This commit is contained in:
Viktor Szakats 2025-09-04 02:19:37 +02:00
parent bd1ac3c696
commit 147c77196e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -622,14 +622,11 @@ void install_signal_handlers(bool keep_sigalrm)
#endif
#if !defined(CURL_WINDOWS_UWP) && !defined(UNDER_CE)
{
HANDLE thread = CreateThread(NULL, 0, &main_window_loop,
(void *)GetModuleHandle(NULL), 0,
&thread_main_id);
thread_main_window = (HANDLE)thread;
if(!thread_main_window || !thread_main_id)
logmsg("cannot start main window loop");
}
thread_main_window = CreateThread(NULL, 0, &main_window_loop,
(void *)GetModuleHandle(NULL), 0,
&thread_main_id);
if(!thread_main_window || !thread_main_id)
logmsg("cannot start main window loop");
#endif
#endif
}