mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[NTGDI]
- fix potential NULL access. CID 702353 svn path=/trunk/; revision=56723
This commit is contained in:
@@ -1016,10 +1016,10 @@ GreGetSetColorTable(
|
||||
psurf = pdc->dclevel.pSurface;
|
||||
|
||||
/* Check if we have the default surface */
|
||||
if ((psurf == NULL) && !bSet)
|
||||
if (psurf == NULL)
|
||||
{
|
||||
/* Use a mono palette */
|
||||
ppal = gppalMono;
|
||||
if(!bSet) ppal = gppalMono;
|
||||
}
|
||||
else if (psurf->SurfObj.iType == STYPE_BITMAP)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user