upd thread api

This commit is contained in:
henrypp committed 2020-09-02 19:07:18 +06:00
1 parent 36ed895e93
commit 83aea21186
2 files changed
+6 -12

No files matched your search

+1 -5
View File
@@ -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);
}
}
}