mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 09:16:17 +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,11 +23,12 @@ 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…
Add table
Add a link
Reference in a new issue