diff options
Diffstat (limited to 'windirstat/mainframe.cpp')
-rw-r--r-- | windirstat/mainframe.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/windirstat/mainframe.cpp b/windirstat/mainframe.cpp index 25d3a43..bbf8a2e 100644 --- a/windirstat/mainframe.cpp +++ b/windirstat/mainframe.cpp @@ -556,7 +556,7 @@ void CMainFrame::UpdateProgress() if(IsProgressSuspended()) { - suspended.LoadString(IDS_SUSPENDED_); + VERIFY(suspended.LoadString(IDS_SUSPENDED_)); } if(m_progressRange > 0) @@ -897,6 +897,11 @@ void CMainFrame::CopyToClipboard(LPCTSTR psz) LPVOID lp = ::GlobalLock(h); ASSERT(lp != NULL); + if (!lp) + { + MdThrowStringException(_T("GlobalLock failed.")); + } + _tcscpy_s((LPTSTR)lp, cchBufLen, psz); ::GlobalUnlock(h); |