mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 16:18:43 +00:00
Unbreak gdi batch... Sometimes dc is null.
svn path=/trunk/; revision=30931
This commit is contained in:
parent
a21e119b07
commit
d660a25834
|
@ -23,10 +23,11 @@ GdiFlushUserBatch(HDC hDC, PGDIBATCHHDR pHdr)
|
|||
if (hDC)
|
||||
{
|
||||
dc = DC_LockDc(hDC);
|
||||
if (!dc)
|
||||
return pHdr->Size; // Return the full size of the structure.
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (dc)
|
||||
{
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
}
|
||||
}
|
||||
// The thread is approaching the end of sunset.
|
||||
switch(pHdr->Cmd)
|
||||
|
|
Loading…
Reference in a new issue