summaryrefslogtreecommitdiff
path: root/protocols/GTalkExt/src/avatar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-21 15:37:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-21 15:37:17 +0000
commit85bc1059e1d3e415c467821eb5f18af8fc0a9468 (patch)
treef4677690848b34a64818e097043f9a550c7801d1 /protocols/GTalkExt/src/avatar.cpp
parent8e88506457722bc5d834fcdd623cc73aa64c1982 (diff)
fixed crash in GTalkExt popups
git-svn-id: http://svn.miranda-ng.org/main/trunk@4147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt/src/avatar.cpp')
-rw-r--r--protocols/GTalkExt/src/avatar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/GTalkExt/src/avatar.cpp b/protocols/GTalkExt/src/avatar.cpp
index c78073ec0a..42bf059dae 100644
--- a/protocols/GTalkExt/src/avatar.cpp
+++ b/protocols/GTalkExt/src/avatar.cpp
@@ -96,20 +96,20 @@ LPSTR CreateAvaFile(HANDLE *hFile)
}
}
-extern HINSTANCE hInst;
+extern HINSTANCE g_hInst;
BOOL SaveAvatar(HANDLE hFile)
{
- HRSRC hres = FindResource(hInst, MAKEINTRESOURCE(IDI_PSEUDOAVA), AVA_RES_TYPE);
+ HRSRC hres = FindResource(g_hInst, MAKEINTRESOURCE(IDI_PSEUDOAVA), AVA_RES_TYPE);
if (!hres) return FALSE;
- HGLOBAL hglob = LoadResource(hInst, hres);
+ HGLOBAL hglob = LoadResource(g_hInst, hres);
if (!hglob) return FALSE;
PVOID p = LockResource(hglob);
if (!p) return FALSE;
- DWORD l = SizeofResource(hInst, hres);
+ DWORD l = SizeofResource(g_hInst, hres);
if (!l) return FALSE;
DWORD written;