mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +00:00
Unbreak gdi batch... Sometimes dc is null.
svn path=/trunk/; revision=30931
This commit is contained in:
parent
a21e119b07
commit
d660a25834
1 changed files with 5 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue