From ed39f2f3f9db269733486d140622ba1072702612 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 4 Jan 2021 01:23:50 +0300 Subject: [PATCH] SDL_wasapi_win32.c (WASAPI_PlatformThreadInit): use L instead of TEXT() because AvSetMmThreadCharacteristicsW specifically accepts WCHAR* input cf. bug #5435. --- 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 eb31989ca..48fb66d4d 100644 --- a/src/audio/wasapi/SDL_wasapi_win32.c +++ b/src/audio/wasapi/SDL_wasapi_win32.c @@ -291,7 +291,7 @@ WASAPI_PlatformThreadInit(_THIS) /* Set this thread to very high "Pro Audio" priority. */ if (pAvSetMmThreadCharacteristicsW) { DWORD idx = 0; - this->hidden->task = pAvSetMmThreadCharacteristicsW(TEXT("Pro Audio"), &idx); + this->hidden->task = pAvSetMmThreadCharacteristicsW(L"Pro Audio", &idx); } }