projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- Don't crash copying from a null pointer in a non client size calculation
[reactos.git]
/
reactos
/
dll
/
win32
/
user32
/
windows
/
nonclient.c
diff --git
a/reactos/dll/win32/user32/windows/nonclient.c
b/reactos/dll/win32/user32/windows/nonclient.c
index
da9b62d
..
ad22eda
100644
(file)
--- a/
reactos/dll/win32/user32/windows/nonclient.c
+++ b/
reactos/dll/win32/user32/windows/nonclient.c
@@
-502,7
+502,13
@@
DefWndNCCalcSize(HWND hWnd, BOOL CalcSizeStruct, RECT *Rect)
DWORD Style = GetClassLongW(hWnd, GCL_STYLE);
DWORD ExStyle;
SIZE WindowBorders;
- RECT OrigRect = *Rect;
+ RECT OrigRect;
+
+ if (Rect == NULL)
+ {
+ return Result;
+ }
+ OrigRect = *Rect;
if (CalcSizeStruct)
{