summaryrefslogtreecommitdiff
path: root/plugins/NoHistory/src/icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NoHistory/src/icons.cpp')
-rw-r--r--plugins/NoHistory/src/icons.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/NoHistory/src/icons.cpp b/plugins/NoHistory/src/icons.cpp
index f3f606fb45..f0d0844aa5 100644
--- a/plugins/NoHistory/src/icons.cpp
+++ b/plugins/NoHistory/src/icons.cpp
@@ -15,13 +15,12 @@ int ReloadIcons(WPARAM wParam, LPARAM lParam) {
void InitIcons()
{
- SKINICONDESC sid = { sizeof(sid) };
+ TCHAR path[MAX_PATH];
+ GetModuleFileName(hInst,path,MAX_PATH);
+ SKINICONDESC sid = { sizeof(sid) };
sid.pszSection = MODULE;
sid.flags = SIDF_PATH_TCHAR;
-
- TCHAR path[MAX_PATH];
- GetModuleFileName(hInst,path,MAX_PATH);
sid.ptszDefaultFile = path;
sid.pszDescription = LPGEN("Disable");