Don't double close the dsound thread.

This commit is contained in:
Unknown W. Brackets 2013-10-12 23:19:56 -07:00
parent a349ef0f52
commit 8ec2131795

View File

@ -11,7 +11,7 @@ namespace DSound
CRITICAL_SECTION soundCriticalSection;
HANDLE soundSyncEvent = NULL;
HANDLE hThread;
HANDLE hThread = NULL;
StreamCallback callback;
@ -204,6 +204,7 @@ namespace DSound
{
WaitForSingleObject(hThread, 1000);
CloseHandle(hThread);
hThread = NULL;
}
if (threadData == 2)