From 8b81f3b1b4c500452db5dd329be403ca6c2cbfba Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 15 Sep 2013 09:35:48 +0000 Subject: -translation fixes -fixed password saving -code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6065 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/src/MraIcons.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'protocols/MRA/src/MraIcons.cpp') diff --git a/protocols/MRA/src/MraIcons.cpp b/protocols/MRA/src/MraIcons.cpp index 9cf3233c60..9917c681e5 100644 --- a/protocols/MRA/src/MraIcons.cpp +++ b/protocols/MRA/src/MraIcons.cpp @@ -50,7 +50,7 @@ static void AddIcoLibItems(LPWSTR lptszSubSectionName, GUI_DISPLAY_ITEM *pgdiIte { TCHAR tszSection[MAX_PATH], tszPath[MAX_FILEPATH]; GetModuleFileName(masMraSettings.hInstance, tszPath, SIZEOF(tszPath)); - mir_sntprintf(tszSection, SIZEOF(tszSection), L"Protocols/MRA/%s", lptszSubSectionName); + mir_sntprintf(tszSection, SIZEOF(tszSection), _T("Protocols/MRA/%s"), lptszSubSectionName); SKINICONDESC sid = { sizeof(sid) }; sid.ptszSection = tszSection; @@ -101,17 +101,17 @@ void IconsLoad() void InitXStatusIcons() { - WCHAR wszPath[MAX_FILEPATH]; + TCHAR tszPath[MAX_FILEPATH]; if (masMraSettings.hDLLXStatusIcons) - GetModuleFileName(masMraSettings.hDLLXStatusIcons, wszPath, SIZEOF(wszPath)); + GetModuleFileName(masMraSettings.hDLLXStatusIcons, tszPath, SIZEOF(tszPath)); else - bzero(wszPath, sizeof(wszPath)); + bzero(tszPath, sizeof(tszPath)); SKINICONDESC sid = { sizeof(sid) }; - sid.pwszSection = L"Protocols/MRA/"LPGENT("Custom Status"); - sid.pwszDefaultFile = wszPath; + sid.ptszSection = LPGENT("Protocols")_T("/")LPGENT("MRA")_T("/")LPGENT("Custom Status"); + sid.ptszDefaultFile = tszPath; sid.cx = sid.cy = 16; - sid.flags = SIDF_ALL_UNICODE; + sid.flags = SIDF_ALL_TCHAR; hXStatusAdvancedStatusIcons[0] = NULL; for (int i = 1; i < MRA_XSTATUS_COUNT+1; i++) { @@ -120,7 +120,7 @@ void InitXStatusIcons() sid.pszName = szBuff; int iCurIndex = i+IDI_XSTATUS1-1; - sid.pwszDescription = lpcszXStatusNameDef[i]; + sid.ptszDescription = lpcszXStatusNameDef[i]; sid.iDefaultIndex = -iCurIndex; hXStatusAdvancedStatusIcons[i] = Skin_AddIcon(&sid); -- cgit v1.2.3