Browse Source

Windows: enter critical section fix

OlehKulykov 9 năm trước cách đây
mục cha
commit
37be3e6aac

+ 1 - 1
src/rws_thread.c

@@ -176,7 +176,7 @@ rws_mutex rws_mutex_create_recursive(void)
 void rws_mutex_lock(rws_mutex mutex)
 {
 #if defined(RWS_OS_WINDOWS)
-	if (mutex) TryEnterCriticalSection((LPCRITICAL_SECTION)mutex);
+	if (mutex) EnterCriticalSection((LPCRITICAL_SECTION)mutex);
 #else
 	if (mutex) pthread_mutex_lock((pthread_mutex_t *)mutex);
 #endif

BIN
test/librws_test.xcodeproj/project.xcworkspace/xcuserdata/residentevil.xcuserdatad/UserInterfaceState.xcuserstate