Codechange: use SignalObjectAndWait since we do not support older than Windows XP anymore

This commit is contained in:
Rubidium
2023-06-28 22:20:19 +02:00
committed by rubidium42
parent 69d5b9d326
commit fd380127f0
2 changed files with 3 additions and 6 deletions

View File

@@ -98,8 +98,7 @@ void SoundDriver_Win32::Stop()
/* Stop the sound thread. */
_waveout = nullptr;
SetEvent(_event);
WaitForSingleObject(_thread, INFINITE);
SignalObjectAndWait(_event, _thread, INFINITE, FALSE);
/* Close the sound device. */
waveOutReset(waveout);