mirror of
https://github.com/reactos/reactos.git
synced 2024-10-19 23:50:05 +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)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue