From 57abc51aad272a656282a52a460a47abe24e07d6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jun 2012 23:51:53 +0000 Subject: - MS_SKIN2_ADDICON replaced with Skin_AddIcon; - SKINICONDESC_SIZE* constants removed and replaced with sizeof(sid); - added SIDF_PATH_UNICODE for all plugins; - dynamic translation fixed in the icolib options dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@507 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/MraIcons.cpp | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'protocols/MRA') diff --git a/protocols/MRA/MraIcons.cpp b/protocols/MRA/MraIcons.cpp index f910f6adc5..0da6ee011e 100644 --- a/protocols/MRA/MraIcons.cpp +++ b/protocols/MRA/MraIcons.cpp @@ -8,28 +8,26 @@ void AddIcoLibItems(LPWSTR lpwszRootSectionName,LPWSTR lpwszSubSectionName,const { char szBuff[MAX_PATH]; WCHAR wszSection[MAX_PATH],wszPath[MAX_FILEPATH]; - SKINICONDESC sid={0}; - - sid.cbSize=SKINICONDESC_SIZE; - sid.pwszSection=wszSection; - sid.pwszDefaultFile=wszPath; - sid.cx=sid.cy=16; - sid.flags=SIDF_ALL_UNICODE; + SKINICONDESC sid={0}; + sid.cbSize = sizeof(sid); + sid.pwszSection = wszSection; + sid.pwszDefaultFile = wszPath; + sid.cx = sid.cy = 16; + sid.flags = SIDF_ALL_UNICODE; if (lpwszSubSectionName==NULL) lpwszSubSectionName=L""; GetModuleFileName(masMraSettings.hInstance,wszPath,SIZEOF(wszPath)); mir_sntprintf(wszSection,SIZEOF(wszSection),L"%s%s%s",lpwszRootSectionName,PROTOCOL_NAMEW,lpwszSubSectionName); - for (SIZE_T i=0;i