mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[WIN32K]
Check for NULL dc surface before dereferencing it in IntGdiRealizePalette. svn path=/trunk/; revision=56980
This commit is contained in:
@@ -767,6 +767,11 @@ IntGdiRealizePalette(HDC hDC)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!pdc->dclevel.pSurface)
|
||||
{
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
ppalSurf = pdc->dclevel.pSurface->ppal;
|
||||
ppalDC = pdc->dclevel.ppal;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user