From 46425ea8d084497a7b29ed9b7a57188732726406 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 24 Aug 2017 23:25:31 +0300 Subject: nullptr must be passed inside SetStatusText to return back to the predefined value --- plugins/Scriver/src/msgs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Scriver') 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)); } } -- cgit v1.2.3