summaryrefslogtreecommitdiff
path: root/plugins/SplashScreen/src/splash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SplashScreen/src/splash.cpp')
-rw-r--r--plugins/SplashScreen/src/splash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SplashScreen/src/splash.cpp b/plugins/SplashScreen/src/splash.cpp
index c8f8c874ba..650be8de35 100644
--- a/plugins/SplashScreen/src/splash.cpp
+++ b/plugins/SplashScreen/src/splash.cpp
@@ -147,7 +147,7 @@ void __cdecl SplashThread(void *arg)
wcl.style = 0;
wcl.cbClsExtra = 0;
wcl.cbWndExtra = 0;
- wcl.hInstance = hInst;
+ wcl.hInstance = g_plugin.getInst();
wcl.hIcon = nullptr;
wcl.hCursor = LoadCursor(nullptr, IDC_ARROW);
wcl.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
@@ -181,7 +181,7 @@ void __cdecl SplashThread(void *arg)
SplashBmp->getHeight(), // Height
HWND_DESKTOP, //Parent
nullptr, //menu handle
- hInst, //Instance
+ g_plugin.getInst(), //Instance
nullptr);
RECT rc; GetWindowRect(hwndSplash, &rc);