From 147c77196e71dfcb1d56d67c6cc61e3402cb689f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 4 Sep 2025 02:19:37 +0200 Subject: [PATCH] util simplify --- tests/server/util.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/server/util.c b/tests/server/util.c index 456b54eb50..62f4a11fe4 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -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 }