summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhenWasIt/src/utils.cpp')
-rw-r--r--plugins/WhenWasIt/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/WhenWasIt/src/utils.cpp b/plugins/WhenWasIt/src/utils.cpp
index 027d7ee3da..5067e42768 100644
--- a/plugins/WhenWasIt/src/utils.cpp
+++ b/plugins/WhenWasIt/src/utils.cpp
@@ -236,7 +236,7 @@ RECT AnchorCalcPos(HWND window, const RECT *rParent, const WINDOWPOS *parentPos,
return rChild;
}
-void CreateToolTip(HWND target, wchar_t* tooltip, LPARAM width)
+void CreateToolTip(HWND target, const wchar_t* tooltip, LPARAM width)
{
HWND hwndToolTip = CreateWindow(TOOLTIPS_CLASS, nullptr, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, target, nullptr, nullptr, nullptr);
@@ -247,7 +247,7 @@ void CreateToolTip(HWND target, wchar_t* tooltip, LPARAM width)
ti.hwnd = target;
ti.uId = 0;
ti.hinst = nullptr;
- ti.lpszText = tooltip;
+ ti.lpszText = (LPWSTR)tooltip;
GetClientRect(target, &ti.rect);
SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM)&ti);
SendMessage(hwndToolTip, TTM_SETMAXTIPWIDTH, 0, width);