summaryrefslogtreecommitdiff
path: root/protocols/Xfire
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire')
-rw-r--r--protocols/Xfire/src/tools.cpp8
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;