PALETTE_SetMapping do not write the palette color to NULL pointer.
Modified: trunk/reactos/subsys/win32k/objects/palette.c
_____
Modified: trunk/reactos/subsys/win32k/objects/palette.c
--- trunk/reactos/subsys/win32k/objects/palette.c 2005-12-29
14:00:12 UTC (rev 20423)
+++ trunk/reactos/subsys/win32k/objects/palette.c 2005-12-29
14:15:36 UTC (rev 20424)
@@ -329,7 +329,10 @@
}
if( !prevMapping || palPtr->mapping[uStart] != index )
iRemapped++;
- palPtr->mapping[uStart] = index;
+ if (palPtr->mapping != NULL)
+ {
+ palPtr->mapping[uStart] = index;
+ }
}
return iRemapped;
Show replies by date