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 }