diff options
Diffstat (limited to 'protocols/Quotes/Forex.cpp')
-rw-r--r-- | protocols/Quotes/Forex.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/Quotes/Forex.cpp b/protocols/Quotes/Forex.cpp index 05d1ecaabb..ab27ba41c3 100644 --- a/protocols/Quotes/Forex.cpp +++ b/protocols/Quotes/Forex.cpp @@ -31,7 +31,7 @@ #include "version.h"
int hLangpack;
-
+HINSTANCE g_hInstance = NULL;
HANDLE g_hEventWorkThreadStop;
int g_nStatus = ID_STATUS_OFFLINE;
HGENMENU g_hMenuEditSettings = NULL;
@@ -352,7 +352,7 @@ namespace OPTIONSDIALOGPAGE odp = { 0 };
odp.cbSize = sizeof(odp);
odp.position = 910000000;
- odp.hInstance = CModuleInfo::GetModuleHandle();
+ odp.hInstance = g_hInstance;
odp.ptszTitle = _T(QUOTES_PROTOCOL_NAME);
odp.ptszGroup = LPGENT("Network");
odp.hIcon = Quotes_LoadIconEx(ICON_STR_MAIN);
@@ -392,6 +392,12 @@ namespace }
+BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+{
+ g_hInstance = hinstDLL;
+ return TRUE;
+}
+
extern "C"
{
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
|