Unbreak gdi batch... Sometimes dc is null.

svn path=/trunk/; revision=30931
This commit is contained in:
James Tabor 2007-12-01 13:26:45 +00:00
parent a21e119b07
commit d660a25834

View file

@ -23,10 +23,11 @@ GdiFlushUserBatch(HDC hDC, PGDIBATCHHDR pHdr)
if (hDC) if (hDC)
{ {
dc = DC_LockDc(hDC); dc = DC_LockDc(hDC);
if (!dc) if (dc)
return pHdr->Size; // Return the full size of the structure. {
Dc_Attr = dc->pDc_Attr; Dc_Attr = dc->pDc_Attr;
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr; if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
}
} }
// The thread is approaching the end of sunset. // The thread is approaching the end of sunset.
switch(pHdr->Cmd) switch(pHdr->Cmd)