summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-10-04 14:58:02 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-10-04 15:08:14 -0500
commitced24ffba2fa1754c466b7944b0ee06d21292706 (patch)
treea932e6d792558ba35850ca16bef04812a232fae7
parent9ae4b6b996d6d1c4924be3a2c507f8c29fcbbb23 (diff)
coverity#1242365: Unchecked return value
Change-Id: Iddb8b1bad29bf372f9485514e2cde195237e3cc3
-rw-r--r--vcl/source/window/window.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 27beb7127cce..8b52d5c5804e 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1292,8 +1292,11 @@ SalGraphics* Window::ImplGetFrameGraphics() const
}
else
{
- OutputDevice *pFrameWinOutDev = mpWindowImpl->mpFrameWindow;
- pFrameWinOutDev->AcquireGraphics();
+ OutputDevice* pFrameWinOutDev = mpWindowImpl->mpFrameWindow;
+ if ( ! pFrameWinOutDev->AcquireGraphics() )
+ {
+ return NULL;
+ }
}
mpWindowImpl->mpFrameWindow->mpGraphics->ResetClipRegion();
return mpWindowImpl->mpFrameWindow->mpGraphics;