Author: tkreuzer
Date: Sun Jul 29 12:22:06 2012
New Revision: 56980
URL:
http://svn.reactos.org/svn/reactos?rev=56980&view=rev
Log:
[WIN32K]
Check for NULL dc surface before dereferencing it in IntGdiRealizePalette.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/palette.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/palette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/palette.…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/palette.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/palette.c [iso-8859-1] Sun Jul 29 12:22:06 2012
@@ -767,6 +767,11 @@
return 0;
}
+ if (!pdc->dclevel.pSurface)
+ {
+ goto cleanup;
+ }
+
ppalSurf = pdc->dclevel.pSurface->ppal;
ppalDC = pdc->dclevel.ppal;