Explorar o código

SDL_wasapi_win32.c (WASAPI_PlatformThreadInit): use L instead of TEXT()

because AvSetMmThreadCharacteristicsW specifically accepts WCHAR* input
cf. bug #5435.
Ozkan Sezer %!s(int64=5) %!d(string=hai) anos
pai
achega
ed39f2f3f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/audio/wasapi/SDL_wasapi_win32.c

+ 1 - 1
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);
     }
 }