Fixed thread related changes:

* Fixed typo
* Fixed wrong #ifdef
This commit is contained in:
Armin Novak 2021-09-20 08:08:02 +02:00 committed by akallabeth
parent 0ccebb2a0f
commit b05eb8d834
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,7 @@ option(WITH_VERBOSE_WINPR_ASSERT "Compile with verbose WINPR_ASSERT." ON)
option(WITH_WINPR_TOOLS "Build WinPR helper binaries" ON)
option(WITH_WINPR_DEPRECATED "Build WinPR deprecated symbols" OFF)
option(WITH_DEBUG_THREADS "Print thread debug messages, enables handle dump" ${DEFAULT_DEBUG_OPTION})
option(WITH_DEBUG_EVENTS "Print devent debug messages, enables handle dump" ${DEFAULT_DEBUG_OPTION})
option(WITH_DEBUG_EVENTS "Print event debug messages, enables handle dump" ${DEFAULT_DEBUG_OPTION})
option(WITH_DEBUG_SYMBOLS "Pack debug symbols to installer" OFF)
option(WITH_NATIVE_SSPI "Use native SSPI modules" ${NATIVE_SSPI})
option(WITH_SMARTCARD_INSPECT "Enable SmartCard API Inspector" OFF)

View File

@ -593,7 +593,7 @@ HANDLE CreateRemoteThread(HANDLE hProcess, LPSECURITY_ATTRIBUTES lpThreadAttribu
VOID ExitThread(DWORD dwExitCode)
{
#if 0
#if defined(WITH_THREAD_LIST)
DWORD rc;
pthread_t tid = pthread_self();
@ -633,6 +633,8 @@ VOID ExitThread(DWORD dwExitCode)
pthread_exit((void*)(size_t)rc);
}
#else
WINPR_UNUSED(dwExitCode);
#endif
}