wasapi: Handle return value of WaitForSingleObject

The wait could've failed for whatever reason, we should handle that.
2 files changed