NtGdiCreatePalette did not check for NULL pointer when it alloc memory.
Modified: trunk/reactos/subsys/win32k/objects/color.c

Modified: trunk/reactos/subsys/win32k/objects/color.c
--- trunk/reactos/subsys/win32k/objects/color.c	2005-12-29 13:53:35 UTC (rev 20422)
+++ trunk/reactos/subsys/win32k/objects/color.c	2005-12-29 14:00:12 UTC (rev 20423)
@@ -173,6 +173,9 @@
 	  palette->palNumEntries,
 	  (PULONG)palette->palPalEntry,
 	  0, 0, 0);
+	  
+  if (NewPalette == NULL)
+      return NULL;
 
   PalGDI = (PPALGDI) PALETTE_LockPalette(NewPalette);
   /* FIXME - Handle PalGDI == NULL!!!! */