diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-24 23:25:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-24 23:25:31 +0300 |
commit | 46425ea8d084497a7b29ed9b7a57188732726406 (patch) | |
tree | 72d542cb2939ce4908f9b51e9b6912c3a57e32f3 /plugins/Scriver | |
parent | 8c1471451343d0323f2cd0b3cdf7557eeea693ee (diff) |
nullptr must be passed inside SetStatusText to return back to the predefined value
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 8f583564b2..d7a2e05b74 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -289,7 +289,7 @@ void CScriverWindow::SetStatusText(const wchar_t *wszText, HICON hIcon) ParentWindowData *pDat = m_pParent;
if (pDat != nullptr) {
SendMessage(pDat->hwndStatus, SB_SETICON, 0, (LPARAM)hIcon);
- SendMessage(pDat->hwndStatus, SB_SETTEXT, 0, (LPARAM)wszText);
+ SendMessage(pDat->hwndStatus, SB_SETTEXT, 0, (LPARAM)(wszText == nullptr ? L"" : wszText));
}
}
|