Might as well mutex here to be safe.

This commit is contained in:
Unknown W. Brackets 2013-10-12 23:05:06 -07:00
parent 82c56dccff
commit a349ef0f52

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);
}