From 66392435325d8e0cab2f32bd4907c2de1c3f306a Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 22 Jan 2022 11:48:50 +1000 Subject: [PATCH] Use CreateEventW() instead of CreateEvent(). --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index d23aa403..b122a49f 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -24564,7 +24564,7 @@ static ma_result ma_device_init__winmm(ma_device* pDevice, const ma_device_confi MMRESULT resultMM; /* We use an event to know when a new fragment needs to be enqueued. */ - pDevice->winmm.hEventPlayback = (ma_handle)CreateEvent(NULL, TRUE, TRUE, NULL); + pDevice->winmm.hEventPlayback = (ma_handle)CreateEventW(NULL, TRUE, TRUE, NULL); if (pDevice->winmm.hEventPlayback == NULL) { errorMsg = "[WinMM] Failed to create event for fragment enqueing for the playback device.", errorCode = ma_result_from_GetLastError(GetLastError()); goto on_error;