mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 06:28:34 +00:00
[WIN32SS/NTGDI]
- Don't assume DC surface in non NULL in NtGdiSetDIBitsToDeviceInternal svn path=/trunk/; revision=56942
This commit is contained in:
parent
d949749e32
commit
78bdedec32
2 changed files with 2 additions and 0 deletions
|
@ -260,5 +260,6 @@ DC_vSelectPalette(PDC pdc, PPALETTE ppal)
|
||||||
}
|
}
|
||||||
|
|
||||||
extern PBRUSH pbrDefaultBrush ;
|
extern PBRUSH pbrDefaultBrush ;
|
||||||
|
extern PSURFACE psurfDefaultBitmap;
|
||||||
|
|
||||||
#endif /* not __WIN32K_DC_H */
|
#endif /* not __WIN32K_DC_H */
|
||||||
|
|
|
@ -446,6 +446,7 @@ NtGdiSetDIBitsToDeviceInternal(
|
||||||
}
|
}
|
||||||
|
|
||||||
pSurf = pDC->dclevel.pSurface;
|
pSurf = pDC->dclevel.pSurface;
|
||||||
|
if(!pSurf) pSurf = psurfDefaultBitmap;
|
||||||
|
|
||||||
pDestSurf = pSurf ? &pSurf->SurfObj : NULL;
|
pDestSurf = pSurf ? &pSurf->SurfObj : NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue