summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-24 23:25:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-24 23:25:31 +0300
commit46425ea8d084497a7b29ed9b7a57188732726406 (patch)
tree72d542cb2939ce4908f9b51e9b6912c3a57e32f3 /src/core
parent8c1471451343d0323f2cd0b3cdf7557eeea693ee (diff)
nullptr must be passed inside SetStatusText to return back to the predefined value
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index 7646c4e7ed..e1678665d8 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -564,7 +564,7 @@ void CSrmmWindow::SetupStatusBar()
void CSrmmWindow::SetStatusText(const wchar_t *wszText, HICON hIcon)
{
SendMessage(m_pOwner->m_hwndStatus, SB_SETICON, 0, (LPARAM)hIcon);
- SendMessage(m_pOwner->m_hwndStatus, SB_SETTEXT, 0, (LPARAM)wszText);
+ SendMessage(m_pOwner->m_hwndStatus, SB_SETTEXT, 0, (LPARAM)(wszText == nullptr ? L"" : wszText));
}
void CSrmmWindow::UpdateReadChars()