Prevent crash in gdibatch.

svn path=/trunk/; revision=31111
This commit is contained in:
James Tabor 2007-12-09 18:45:13 +00:00
parent 709089678a
commit 9f375e0914

View file

@ -65,7 +65,7 @@ GdiFlushUserBatch(HDC hDC, PGDIBATCHHDR pHdr)
{
PDC dc = NULL;
PDC_ATTR Dc_Attr = NULL;
if (hDC)
if (hDC && !IsObjectDead(hDC))
{
dc = DC_LockDc(hDC);
if (dc)