diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-21 15:37:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-21 15:37:17 +0000 |
commit | 85bc1059e1d3e415c467821eb5f18af8fc0a9468 (patch) | |
tree | f4677690848b34a64818e097043f9a550c7801d1 /protocols/GTalkExt/src/avatar.cpp | |
parent | 8e88506457722bc5d834fcdd623cc73aa64c1982 (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.cpp | 8 |
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;
|