mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-23 11:32:32 -05:00
upd thread api
This commit is contained in:
2 files changed
+6
-12
No files matched your search
+1
-5
@@ -607,13 +607,9 @@ VOID CALLBACK _wfp_logcallback (UINT32 flags, FILETIME const* pft, UINT8 const*
|
||||
|
||||
if (!thread_count || !_r_fastlock_islocked (&lock_logthread))
|
||||
{
|
||||
HANDLE hthread = _r_sys_createthreadex (&LogThread, _r_app_gethwnd (), TRUE, THREAD_PRIORITY_HIGHEST);
|
||||
|
||||
if (hthread)
|
||||
if (NT_SUCCESS (_r_sys_createthreadex (&LogThread, NULL, _r_app_gethwnd (), FALSE, THREAD_PRIORITY_HIGHEST)))
|
||||
{
|
||||
InterlockedIncrement (&log_stack.thread_count);
|
||||
|
||||
NtResumeThread (hthread, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user