mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:22:57 +00:00
[WIN32K]
Check for NULL dc surface before dereferencing it in IntGdiRealizePalette. svn path=/trunk/; revision=56980
This commit is contained in:
parent
85a3397af9
commit
268d481877
1 changed files with 5 additions and 0 deletions
|
@ -767,6 +767,11 @@ IntGdiRealizePalette(HDC hDC)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!pdc->dclevel.pSurface)
|
||||||
|
{
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
ppalSurf = pdc->dclevel.pSurface->ppal;
|
ppalSurf = pdc->dclevel.pSurface->ppal;
|
||||||
ppalDC = pdc->dclevel.ppal;
|
ppalDC = pdc->dclevel.ppal;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue