diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2019-01-24 15:12:16 +0100 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2019-01-24 15:12:16 +0100 |
| commit | f25f7f23b513d7737f858d42706681e907d6c86d (patch) | |
| tree | 4b4d7f7b0b30b0c86db95c6df29787ca179cf8d0 /RtAudio.cpp | |
| parent | b787f3630bdb83087fb31eed2d815f0ea6370a8c (diff) | |
Fix warning about casting result of GetProcAddress.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 8037d2a..9927b26 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -4997,7 +4997,8 @@ void RtApiWasapi::wasapiThread() HMODULE AvrtDll = LoadLibrary( (LPCTSTR) "AVRT.dll" ); if ( AvrtDll ) { DWORD taskIndex = 0; - TAvSetMmThreadCharacteristicsPtr AvSetMmThreadCharacteristicsPtr = ( TAvSetMmThreadCharacteristicsPtr ) GetProcAddress( AvrtDll, "AvSetMmThreadCharacteristicsW" ); + TAvSetMmThreadCharacteristicsPtr AvSetMmThreadCharacteristicsPtr = + ( TAvSetMmThreadCharacteristicsPtr ) (void(*)()) GetProcAddress( AvrtDll, "AvSetMmThreadCharacteristicsW" ); AvSetMmThreadCharacteristicsPtr( L"Pro Audio", &taskIndex ); FreeLibrary( AvrtDll ); } |
