diff options
Diffstat (limited to 'icons.cpp')
| -rwxr-xr-x | icons.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,7 @@ HANDLE IconLibDefine(TCHAR* desc, TCHAR* section, char* ident, HICON icon, char* if(!size)
size = 16;
- sid.cbSize = SKINICONDESC_SIZE;
+ sid.cbSize = sizeof( SKINICONDESC );
sid.ptszSection = section;
sid.ptszDescription = desc;
sid.flags = SIDF_TCHAR;
@@ -34,8 +34,8 @@ HANDLE IconLibDefine(TCHAR* desc, TCHAR* section, char* ident, HICON icon, char* sid.iDefaultIndex = def_idx;
sid.hDefaultIcon = icon;
sid.cx = sid.cy = size;
-
- hIcon = (HANDLE)CallService(MS_SKIN2_ADDICON, 0, (LPARAM)&sid);
+
+ hIcon = Skin_AddIcon(&sid);
return hIcon;
}
|
