diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-23 18:47:01 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-23 18:47:01 +0000 |
commit | 7080a582908ffcd9f64041c28ca9b9739d735385 (patch) | |
tree | f5726027add15c7c25501cb3e29b8ec2d89145f0 | |
parent | 0c4bed1db819569b8d0e0e2e4cffdb070d221230 (diff) |
BASS_Interface: fix bass library reloading
git-svn-id: http://svn.miranda-ng.org/main/trunk@16331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/BASS_interface/src/Main.cpp | 9 |
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;
}
|