From 423be683866fd8e305457eb725d8cdbe1f297fbd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Feb 2019 12:43:20 +0300 Subject: popup code cleaning (cause we have no tchar.h) --- plugins/Popup/src/history.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Popup/src/history.cpp') diff --git a/plugins/Popup/src/history.cpp b/plugins/Popup/src/history.cpp index deed963c17..d0e745da64 100644 --- a/plugins/Popup/src/history.cpp +++ b/plugins/Popup/src/history.cpp @@ -75,7 +75,7 @@ void PopupHistoryAdd(POPUPDATA2 *ppdNew) *ppd = *ppdNew; if (ppd->flags & PU2_UNICODE) { ppd->lptzTitle = mir_wstrdup(ppd->lpwzTitle); - ppd->lptzText = mir_wstrdup(ppd->lptzText); + ppd->lpwzText = mir_wstrdup(ppd->lpwzText); } else { ppd->lpzTitle = mir_strdup(ppd->lpzTitle); @@ -188,7 +188,7 @@ static INT_PTR CALLBACK HistoryDlgProc(HWND hwnd, UINT msg, WPARAM, LPARAM lPara if (ppd->flags & PU2_UNICODE) { ieData.dwFlags |= IEEDF_UNICODE_TEXT | IEEDF_UNICODE_NICK; ieData.pszNickW = ppd->lptzTitle; - ieData.pszTextW = ppd->lptzText; + ieData.pszTextW = ppd->lpwzText; ieData.pszText2W = nullptr; } else { @@ -372,7 +372,7 @@ static INT_PTR CALLBACK HistoryDlgProc(HWND hwnd, UINT msg, WPARAM, LPARAM lPara if (ppd->flags & PU2_UNICODE) { ieData.dwFlags |= IEEDF_UNICODE_TEXT | IEEDF_UNICODE_NICK; ieData.pszNickW = ppd->lptzTitle; - ieData.pszTextW = ppd->lptzText; + ieData.pszTextW = ppd->lpwzText; ieData.pszText2W = nullptr; } else { -- cgit v1.2.3