From 966c872120ea94941f2672f15cdcc9018a5a5dd0 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 3 Apr 2019 10:39:00 +1100 Subject: Backport: Help static analyzers with assert. Backport of changeset 7399:0e816d5d66a3. --- win32/ScintillaWin.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 9bb878417..a9361b157 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -3362,6 +3362,8 @@ LRESULT PASCAL ScintillaWin::CTWndProc( ::EndPaint(hWnd, &ps); return 0; } + // If above SUCCEEDED, then pCTRenderTarget not nullptr + assert(pCTRenderTarget); surfaceWindow->Init(pCTRenderTarget, hWnd); pCTRenderTarget->BeginDraw(); #endif -- cgit v1.2.3