mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +00:00
check for a valid dc before accessing Dc_Attr
svn path=/trunk/; revision=30997
This commit is contained in:
parent
546ed0b8d6
commit
67c0893d5d
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ GdiFlushUserBatch(HDC hDC, PGDIBATCHHDR pHdr)
|
||||||
case GdiBCSetBrushOrg:
|
case GdiBCSetBrushOrg:
|
||||||
{
|
{
|
||||||
PGDIBSSETBRHORG pgSBO;
|
PGDIBSSETBRHORG pgSBO;
|
||||||
|
if(!dc) break;
|
||||||
pgSBO = (PGDIBSSETBRHORG) pHdr;
|
pgSBO = (PGDIBSSETBRHORG) pHdr;
|
||||||
Dc_Attr->ptlBrushOrigin = pgSBO->ptlBrushOrigin;
|
Dc_Attr->ptlBrushOrigin = pgSBO->ptlBrushOrigin;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue