diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-27 12:43:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-27 12:43:20 +0300 |
commit | 423be683866fd8e305457eb725d8cdbe1f297fbd (patch) | |
tree | c49a7bdaf7f08683b9bfae48f0250050b2bf1872 /plugins/LotusNotify | |
parent | 288a07c81370226937d882b7a14fe3b6e3607e9e (diff) |
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'plugins/LotusNotify')
-rw-r--r-- | plugins/LotusNotify/src/LotusNotify.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/LotusNotify/src/LotusNotify.cpp b/plugins/LotusNotify/src/LotusNotify.cpp index 27f485002a..4f50ff2f54 100644 --- a/plugins/LotusNotify/src/LotusNotify.cpp +++ b/plugins/LotusNotify/src/LotusNotify.cpp @@ -447,7 +447,7 @@ BOOL checkNotesIniFile(BOOL bInfo) void showMsg(wchar_t* sender,wchar_t* text, DWORD id, char *strUID)
{
- POPUPDATAT ppd;
+ POPUPDATAW ppd;
//hContact = A_VALID_HANDLE_YOU_GOT_FROM_SOMEWHERE;
//hIcon = A_VALID_HANDLE_YOU_GOT_SOMEWHERE;
//char * lpzContactName = (char*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)lhContact,0);
@@ -460,8 +460,8 @@ void showMsg(wchar_t* sender,wchar_t* text, DWORD id, char *strUID) memset(&ppd, 0, sizeof(ppd)); //This is always a good thing to do.
ppd.lchContact = NULL; //(HANDLE)hContact; //Be sure to use a GOOD handle, since this will not be checked.
ppd.lchIcon = LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_ICON1));
- wcscpy_s(ppd.lptzContactName, _countof(ppd.lptzContactName), sender);
- wcscpy_s(ppd.lptzText, _countof(ppd.lptzText), text);
+ wcscpy_s(ppd.lpwzContactName, _countof(ppd.lpwzContactName), sender);
+ wcscpy_s(ppd.lpwzText, _countof(ppd.lpwzText), text);
if(settingSetColours)
{
ppd.colorBack = settingBgColor;
@@ -479,7 +479,7 @@ void showMsg(wchar_t* sender,wchar_t* text, DWORD id, char *strUID) ppd.PluginData = mpd;
//Now that every field has been filled, we want to see the popup.
- PUAddPopupT(&ppd);
+ PUAddPopupW(&ppd);
}
@@ -499,7 +499,7 @@ void ErMsgT(wchar_t* msg) wcsncpy_s(buffer, L"LotusNotify: ", _TRUNCATE);
wcscat_s(buffer, msg);
isPopupWaiting = TRUE;
- PUShowMessageT(buffer, SM_WARNING);
+ PUShowMessageW(buffer, SM_WARNING);
isPopupWaiting = FALSE;
}
}
|