projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a3397
)
[WIN32K]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Sun, 29 Jul 2012 12:22:06 +0000
(12:22 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Sun, 29 Jul 2012 12:22:06 +0000
(12:22 +0000)
Check for NULL dc surface before dereferencing it in IntGdiRealizePalette.
svn path=/trunk/; revision=56980
reactos/win32ss/gdi/ntgdi/palette.c
patch
|
blob
|
history
diff --git
a/reactos/win32ss/gdi/ntgdi/palette.c
b/reactos/win32ss/gdi/ntgdi/palette.c
index
d471850
..
ff600d7
100644
(file)
--- a/
reactos/win32ss/gdi/ntgdi/palette.c
+++ b/
reactos/win32ss/gdi/ntgdi/palette.c
@@
-767,6
+767,11
@@
IntGdiRealizePalette(HDC hDC)
return 0;
}
+ if (!pdc->dclevel.pSurface)
+ {
+ goto cleanup;
+ }
+
ppalSurf = pdc->dclevel.pSurface->ppal;
ppalDC = pdc->dclevel.ppal;