summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/src/message_pump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TipperYM/src/message_pump.cpp')
-rw-r--r--plugins/TipperYM/src/message_pump.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TipperYM/src/message_pump.cpp b/plugins/TipperYM/src/message_pump.cpp
index ffc5237068..5eb1182f15 100644
--- a/plugins/TipperYM/src/message_pump.cpp
+++ b/plugins/TipperYM/src/message_pump.cpp
@@ -124,7 +124,7 @@ unsigned int CALLBACK MessagePumpThread(void*)
if (!NeedWaitForContent(clcitex)) {
if (hwndTip)
MyDestroyWindow(hwndTip);
- hwndTip = CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_TOPMOST, POP_WIN_CLASS, nullptr, WS_POPUP, 0, 0, 0, 0, nullptr, nullptr, hInst, (LPVOID)clcitex);
+ hwndTip = CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_TOPMOST, POP_WIN_CLASS, nullptr, WS_POPUP, 0, 0, 0, 0, nullptr, nullptr, g_plugin.getInst(), (LPVOID)clcitex);
if (clcitex) {
mir_free(clcitex);
@@ -214,7 +214,7 @@ void InitMessagePump()
WNDCLASSEX wcl = {0};
wcl.cbSize = sizeof(wcl);
wcl.lpfnWndProc = PopupWindowProc;
- wcl.hInstance = hInst;
+ wcl.hInstance = g_plugin.getInst();
wcl.hCursor = LoadCursor(nullptr, IDC_ARROW);
wcl.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
wcl.lpszClassName = POP_WIN_CLASS;
@@ -230,7 +230,7 @@ void InitMessagePump()
void DeinitMessagePump()
{
PostMPMessage(WM_QUIT, 0, 0);
- UnregisterClass(POP_WIN_CLASS, hInst);
+ UnregisterClass(POP_WIN_CLASS, g_plugin.getInst());
FreeLibrary(hDwmapiDll);
}