From 7080a582908ffcd9f64041c28ca9b9739d735385 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 23 Feb 2016 18:47:01 +0000 Subject: BASS_Interface: fix bass library reloading git-svn-id: http://svn.miranda-ng.org/main/trunk@16331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BASS_interface/src/Main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/BASS_interface') 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; } -- cgit v1.2.3