From 5c067906ba0304729de189c05066d1647583dcda Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 15 Nov 2021 00:55:04 +0300 Subject: [PATCH] wasapi: AvSetMmThreadCharacteristicsW takes an LPCWSTR param, not LPWSTR --- src/audio/wasapi/SDL_wasapi_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/wasapi/SDL_wasapi_win32.c b/src/audio/wasapi/SDL_wasapi_win32.c index 173ab00eb..1be1b4d10 100644 --- a/src/audio/wasapi/SDL_wasapi_win32.c +++ b/src/audio/wasapi/SDL_wasapi_win32.c @@ -53,7 +53,7 @@ static IMMDeviceEnumerator *enumerator = NULL; /* handle to Avrt.dll--Vista and later!--for flagging the callback thread as "Pro Audio" (low latency). */ static HMODULE libavrt = NULL; -typedef HANDLE(WINAPI *pfnAvSetMmThreadCharacteristicsW)(LPWSTR, LPDWORD); +typedef HANDLE(WINAPI *pfnAvSetMmThreadCharacteristicsW)(LPCWSTR, LPDWORD); typedef BOOL(WINAPI *pfnAvRevertMmThreadCharacteristics)(HANDLE); static pfnAvSetMmThreadCharacteristicsW pAvSetMmThreadCharacteristicsW = NULL; static pfnAvRevertMmThreadCharacteristics pAvRevertMmThreadCharacteristics = NULL;