mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Might as well mutex here to be safe.
This commit is contained in:
1 parent
82c56dccff
commit
a349ef0f52
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user