Might as well mutex here to be safe.

This commit is contained in:
Unknown W. Brackets committed 2013-10-12 23:10:32 -07:00
1 parent 82c56dccff
commit a349ef0f52
1 file changed
+3
+3
View File
@@ -195,6 +195,8 @@ namespace DSound
if (!dsBuffer)
return;
EnterCriticalSection(&soundCriticalSection);
if (threadData == 0)
threadData = 1;
@@ -217,6 +219,7 @@ namespace DSound
if (soundSyncEvent != NULL)
CloseHandle(soundSyncEvent);
soundSyncEvent = NULL;
LeaveCriticalSection(&soundCriticalSection);
}