mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[WIN32SS/NTGDI]
- Don't assume DC surface in non NULL in NtGdiSetDIBitsToDeviceInternal svn path=/trunk/; revision=56942
This commit is contained in:
@@ -260,5 +260,6 @@ DC_vSelectPalette(PDC pdc, PPALETTE ppal)
|
||||
}
|
||||
|
||||
extern PBRUSH pbrDefaultBrush ;
|
||||
extern PSURFACE psurfDefaultBitmap;
|
||||
|
||||
#endif /* not __WIN32K_DC_H */
|
||||
|
||||
@@ -446,6 +446,7 @@ NtGdiSetDIBitsToDeviceInternal(
|
||||
}
|
||||
|
||||
pSurf = pDC->dclevel.pSurface;
|
||||
if(!pSurf) pSurf = psurfDefaultBitmap;
|
||||
|
||||
pDestSurf = pSurf ? &pSurf->SurfObj : NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user