diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-09-15 09:35:48 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-09-15 09:35:48 +0000 |
commit | 8b81f3b1b4c500452db5dd329be403ca6c2cbfba (patch) | |
tree | 830252959bee58306469513468f2b499888d5d0a /protocols/MRA/src/MraIcons.cpp | |
parent | 7f44824457f6a4cbb8f79122a0d26b979695665c (diff) |
-translation fixes
-fixed password saving
-code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6065 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/MraIcons.cpp')
-rw-r--r-- | protocols/MRA/src/MraIcons.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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);
|