diff options
Diffstat (limited to 'plugins/Gender/main.cpp')
-rw-r--r-- | plugins/Gender/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Gender/main.cpp b/plugins/Gender/main.cpp index 62825459f6..5e5f1f4992 100644 --- a/plugins/Gender/main.cpp +++ b/plugins/Gender/main.cpp @@ -258,13 +258,14 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam) if (bContactMenuItems) hHookPrebuildContactMenu = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, onPrebuildContactMenu);
bMetaAvail = (ServiceExists(MS_MC_GETMETACONTACT) != 0);
+ TCHAR szFile[MAX_PATH];
+ GetModuleFileName(g_hInst, szFile, MAX_PATH);
+
//IcoLib support
SKINICONDESC sid = {0};
sid.cbSize = sizeof(sid);
sid.flags = SIDF_ALL_TCHAR;
sid.ptszSection = LPGENT("Gender");
- TCHAR szFile[MAX_PATH];
- GetModuleFileName(g_hInst, szFile, MAX_PATH);
sid.ptszDefaultFile = szFile;
sid.ptszDescription = LPGENT("Male");
|