This commit is contained in:
Бранимир Караџић
2023-04-24 20:41:57 -07:00
parent e417d07567
commit af21f33807

View File

@@ -109,7 +109,7 @@ namespace bx
ThreadInternal* ti = (ThreadInternal*)m_internal;
#if BX_CRT_NONE
ti->m_handle = INT32_MIN;
ti->m_handle = -1;
#elif BX_PLATFORM_WINDOWS \
|| BX_PLATFORM_WINRT \
|| BX_PLATFORM_XBOXONE
@@ -140,7 +140,7 @@ namespace bx
#if BX_CRT_NONE
ti->m_handle = crt0::threadCreate(&ti->threadFunc, _userData, m_stackSize, _name);
if (NULL == ti->m_handle)
if (-1 == ti->m_handle)
{
return false;
}