diff options
Diffstat (limited to 'protocols/Tlen/src/tlen.cpp')
-rw-r--r-- | protocols/Tlen/src/tlen.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Tlen/src/tlen.cpp b/protocols/Tlen/src/tlen.cpp index 05c76957f5..8d6e8a5b0d 100644 --- a/protocols/Tlen/src/tlen.cpp +++ b/protocols/Tlen/src/tlen.cpp @@ -130,13 +130,11 @@ static int TlenIconsChanged(void *ptr, WPARAM wParam, LPARAM lParam) static void TlenRegisterIcons()
{
- SKINICONDESC sid = { 0 };
- TCHAR path[MAX_PATH];
- TCHAR szSectionName[100];
+ TCHAR path[MAX_PATH], szSectionName[100];
mir_sntprintf(szSectionName, SIZEOF( szSectionName ), _T("%s/%s"), _T("Protocols"), _T("Tlen"));
-
GetModuleFileName(hInst, path, MAX_PATH);
- sid.cbSize = sizeof(SKINICONDESC);
+
+ SKINICONDESC sid = { sizeof(sid) };
sid.cx = sid.cy = 16;
sid.ptszSection = szSectionName;
sid.ptszDefaultFile = path;
|