mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 00:58:31 +00:00
[NTGDI]
- fix potential NULL access. CID 702353 svn path=/trunk/; revision=56723
This commit is contained in:
parent
9c1cc14414
commit
92cc620047
1 changed files with 2 additions and 2 deletions
|
@ -1016,10 +1016,10 @@ GreGetSetColorTable(
|
||||||
psurf = pdc->dclevel.pSurface;
|
psurf = pdc->dclevel.pSurface;
|
||||||
|
|
||||||
/* Check if we have the default surface */
|
/* Check if we have the default surface */
|
||||||
if ((psurf == NULL) && !bSet)
|
if (psurf == NULL)
|
||||||
{
|
{
|
||||||
/* Use a mono palette */
|
/* Use a mono palette */
|
||||||
ppal = gppalMono;
|
if(!bSet) ppal = gppalMono;
|
||||||
}
|
}
|
||||||
else if (psurf->SurfObj.iType == STYPE_BITMAP)
|
else if (psurf->SurfObj.iType == STYPE_BITMAP)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue