summaryrefslogtreecommitdiff
path: root/plugins/wbOSD/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wbOSD/src/options.cpp')
-rw-r--r--plugins/wbOSD/src/options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wbOSD/src/options.cpp b/plugins/wbOSD/src/options.cpp
index 12ad300dae..0b041ed5d9 100644
--- a/plugins/wbOSD/src/options.cpp
+++ b/plugins/wbOSD/src/options.cpp
@@ -54,7 +54,7 @@ int selectColor(HWND hwnd, COLORREF *clr)
CHOOSECOLOR cc = { 0 };
cc.lStructSize = sizeof(cc);
cc.hwndOwner = hwnd;
- cc.hInstance = (HWND)hI;
+ cc.hInstance = (HWND)g_plugin.getInst();
cc.rgbResult = *clr;
cc.lpCustColors = pencustcolors;
cc.Flags = CC_FULLOPEN | CC_RGBINIT;
@@ -411,7 +411,7 @@ int OptionsInit(WPARAM wparam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.position = 150000000;
- odp.hInstance = hI;
+ odp.hInstance = g_plugin.getInst();
odp.pszTemplate = MAKEINTRESOURCEA(IDD_DIALOG1);
odp.szGroup.w = LPGENW("Plugins");
odp.szTitle.w = LPGENW("OSD");