mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 00:25:05 +00:00
[NTGDI]
- fix potential NULL access. CID 702353 svn path=/trunk/; revision=56723
This commit is contained in:
parent
9c1cc14414
commit
92cc620047
|
@ -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…
Reference in a new issue