summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp')
-rw-r--r--plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp b/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp
index 347c7c95e3..751d6f8d19 100644
--- a/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp
+++ b/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp
@@ -194,9 +194,9 @@ FIBITMAP* LoadResource(UINT ID, LPTSTR lpType)
{
FIBITMAP *dib = nullptr;
if (lpType) {
- HRSRC hResInfo = FindResource(ghInst,MAKEINTRESOURCE(ID),lpType);
- DWORD ResSize = SizeofResource(ghInst,hResInfo);
- HGLOBAL hRes = LoadResource(ghInst,hResInfo);
+ HRSRC hResInfo = FindResource(g_plugin.getInst(),MAKEINTRESOURCE(ID),lpType);
+ DWORD ResSize = SizeofResource(g_plugin.getInst(),hResInfo);
+ HGLOBAL hRes = LoadResource(g_plugin.getInst(),hResInfo);
BYTE* buffer = (BYTE*)LockResource(hRes);
if (buffer)
{
@@ -214,7 +214,7 @@ FIBITMAP* LoadResource(UINT ID, LPTSTR lpType)
FreeResource(hRes);
}
else {
- HBITMAP hScrBM = (HBITMAP)LoadImage(ghInst,MAKEINTRESOURCE(ID), IMAGE_BITMAP, 0, 0,LR_SHARED);
+ HBITMAP hScrBM = (HBITMAP)LoadImage(g_plugin.getInst(),MAKEINTRESOURCE(ID), IMAGE_BITMAP, 0, 0,LR_SHARED);
if (hScrBM == nullptr)
return dib;
dib = FreeImage_CreateDIBFromHBITMAP(hScrBM);