summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorStephen Sinclair <radarsat1@gmail.com>2019-01-24 15:12:16 +0100
committerStephen Sinclair <radarsat1@gmail.com>2019-01-24 15:12:16 +0100
commitf25f7f23b513d7737f858d42706681e907d6c86d (patch)
tree4b4d7f7b0b30b0c86db95c6df29787ca179cf8d0 /RtAudio.cpp
parentb787f3630bdb83087fb31eed2d815f0ea6370a8c (diff)
Fix warning about casting result of GetProcAddress.
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp3
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 );
}