summaryrefslogtreecommitdiff
path: root/plugins/BASS_interface/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/BASS_interface/src')
-rw-r--r--plugins/BASS_interface/src/Main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/BASS_interface/src/Main.cpp b/plugins/BASS_interface/src/Main.cpp
index 4ca3209655..eb7c2bfeee 100644
--- a/plugins/BASS_interface/src/Main.cpp
+++ b/plugins/BASS_interface/src/Main.cpp
@@ -16,10 +16,13 @@ Copyright (C) 2010, 2011 tico-tico
static HINSTANCE hBass = NULL;
-FARPROC WINAPI delayHook(unsigned dliNotify, PDelayLoadInfo)
+FARPROC WINAPI delayHook(unsigned dliNotify, PDelayLoadInfo dli)
{
- //if (dliNotify == dliNotePreLoadLibrary)
- // return (FARPROC)hBass;
+ switch (dliNotify)
+ {
+ case dliNotePreGetProcAddress:
+ return GetProcAddress(hBass, dli->dlp.szProcName);
+ }
return NULL;
}