diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-06-14 17:00:34 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-06-14 17:00:34 +0000 |
commit | dc50b658940aef232430ae2b178ea4878f15c0b8 (patch) | |
tree | 187308010227358702ac3898fb5a68524981c18c /protocols/Xfire | |
parent | 8b3b1961a555f06ded4bca1d7b2a38afab0272e6 (diff) |
unicode popups
git-svn-id: http://svn.miranda-ng.org/main/trunk@9477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire')
-rw-r--r-- | protocols/Xfire/src/tools.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Xfire/src/tools.cpp b/protocols/Xfire/src/tools.cpp index a778c09ecf..f05b35f91e 100644 --- a/protocols/Xfire/src/tools.cpp +++ b/protocols/Xfire/src/tools.cpp @@ -90,7 +90,7 @@ int displayPopup(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType,HICON hi static HICON hicNotify = NULL, hicWarning = NULL, hicError = NULL;
if ((uType & MB_TYPEMASK) == MB_OK) {
- POPUPDATA ppd = { 0 };
+ POPUPDATAT ppd = { 0 };
ppd.lchIcon = hicon;
if (bIconsNotLoaded) {
@@ -100,8 +100,8 @@ int displayPopup(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType,HICON hi bIconsNotLoaded = FALSE;
}
- lstrcpynA(ppd.lpzContactName, lpCaption, sizeof(ppd.lpzContactName));
- lstrcpynA(ppd.lpzText, lpText, sizeof(ppd.lpzText));
+ lstrcpyn(ppd.lptzContactName, _A2T(lpCaption), SIZEOF(ppd.lptzContactName));
+ lstrcpyn(ppd.lptzText, _A2T(lpText), SIZEOF(ppd.lptzText));
if ((uType & MB_ICONMASK) == MB_ICONSTOP) {
ppd.lchIcon = hicError;
@@ -119,7 +119,7 @@ int displayPopup(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType,HICON hi ppd.colorText = RGB(0,0,0);
}
- PUAddPopup(&ppd);
+ PUAddPopupT(&ppd);
}
return IDOK;
|