Ver Fonte

wasapi: AvSetMmThreadCharacteristicsW takes an LPCWSTR param, not LPWSTR

Ozkan Sezer há 4 anos atrás
pai
commit
5c067906ba
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/audio/wasapi/SDL_wasapi_win32.c

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