projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[UXTHEME] -Fix most new tests for DrawThemeParentBackground. Hackfix CloseThemeData.
[reactos.git]
/
reactos
/
dll
/
win32
/
uxtheme
/
system.c
diff --git
a/reactos/dll/win32/uxtheme/system.c
b/reactos/dll/win32/uxtheme/system.c
index
a3b1ca1
..
393778f
100644
(file)
--- a/
reactos/dll/win32/uxtheme/system.c
+++ b/
reactos/dll/win32/uxtheme/system.c
@@
-897,6
+897,8
@@
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
TRACE("(%p)\n", hTheme);
if(!hTheme || hTheme == INVALID_HANDLE_VALUE)
return E_HANDLE;
+ if(IsBadReadPtr (hTheme, sizeof(THEME_CLASS))) /* This check is a hack! */
+ return E_HANDLE;
return MSSTYLES_CloseThemeClass(hTheme);
}