diff options
author | Neil <nyamatongwe@gmail.com> | 2015-01-05 16:09:09 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-01-05 16:09:09 +1100 |
commit | 9a96f7732129e9b2bf452e2d39aa1188010f2d0e (patch) | |
tree | 4e6c7428e67507c4d35588185f2bd99d8bc99f4d | |
parent | 1f3c4920ec2782039493d6dc92a5da5a5731bd77 (diff) | |
download | scintilla-mirror-9a96f7732129e9b2bf452e2d39aa1188010f2d0e.tar.gz |
Check for non-NULL render target and avoid Coverity warning.
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 5198b0f21..ec72a405a 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -522,7 +522,7 @@ void ScintillaWin::EnsureRenderTarget(HDC hdc) { DropGraphics(false); } - if (technology == SC_TECHNOLOGY_DIRECTWRITEDC) { + if ((technology == SC_TECHNOLOGY_DIRECTWRITEDC) && pRenderTarget) { RECT rcWindow; GetClientRect(MainHWND(), &rcWindow); HRESULT hr = static_cast<ID2D1DCRenderTarget*>(pRenderTarget)->BindDC(hdc, &rcWindow); |