[WIN32SS/NTGDI]

- Don't assume DC surface in non NULL in NtGdiSetDIBitsToDeviceInternal

svn path=/trunk/; revision=56942
This commit is contained in:
Jérôme Gardou 2012-07-22 21:19:02 +00:00
parent d949749e32
commit 78bdedec32
2 changed files with 2 additions and 0 deletions

View file

@ -260,5 +260,6 @@ DC_vSelectPalette(PDC pdc, PPALETTE ppal)
}
extern PBRUSH pbrDefaultBrush ;
extern PSURFACE psurfDefaultBitmap;
#endif /* not __WIN32K_DC_H */

View file

@ -446,6 +446,7 @@ NtGdiSetDIBitsToDeviceInternal(
}
pSurf = pDC->dclevel.pSurface;
if(!pSurf) pSurf = psurfDefaultBitmap;
pDestSurf = pSurf ? &pSurf->SurfObj : NULL;