diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-11 17:50:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-11 17:50:10 +0000 |
commit | 393c8dd0345138e00b6a5a1e13b06f60c83e02e8 (patch) | |
tree | efe30c65cd729d81af51bd2bacdd093a32d38d81 /plugins/Popup/src/common.h | |
parent | 075c7d0030e543e59adceae9e73c73cbb661482f (diff) |
ansi popups dead
git-svn-id: http://svn.miranda-ng.org/main/trunk@9433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/common.h')
-rw-r--r-- | plugins/Popup/src/common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Popup/src/common.h b/plugins/Popup/src/common.h index 402f9ec4b0..aa8fb83bc5 100644 --- a/plugins/Popup/src/common.h +++ b/plugins/Popup/src/common.h @@ -77,11 +77,11 @@ inline INT_PTR DBGetContactSettingStringX(MCONTACT hContact, const char *ModuleN case DBVT_ASCIIZ:
ret = (INT_PTR)mir_strdup(result ? Default : dbv.pszVal);
break;
- case DBVT_WCHAR:
+ case DBVT_TCHAR:
if (!result)
- ret = (INT_PTR)mir_wstrdup(dbv.pwszVal);
+ ret = (INT_PTR)mir_tstrdup(dbv.ptszVal);
else
- ret = (INT_PTR)mir_a2u(Default);
+ ret = (INT_PTR)mir_a2t(Default);
break;
}
if (!result)
@@ -99,13 +99,13 @@ inline void AddTooltipTranslated(HWND hwndToolTip, HWND hwnd, int id, RECT rc, c ti.uId = id;
SendMessage(hwndToolTip, TTM_DELTOOL, 0, (LPARAM) (LPTOOLINFO) &ti);
- LPWSTR wtext = mir_a2u(text);
+ LPTSTR wtext = mir_a2t(text);
ti.uFlags = TTF_SUBCLASS;
ti.hwnd = hwnd;
ti.uId = id;
ti.hinst = hInst;
- ti.lpszText = TranslateW(wtext);
+ ti.lpszText = TranslateTS(wtext);
ti.rect = rc;
SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti);
|