Author: gschneider
Date: Sat Apr 18 20:25:18 2009
New Revision: 40584
URL:
http://svn.reactos.org/svn/reactos?rev=40584&view=rev
Log:
- Don't crash copying from a null pointer in a non client size calculation
- Several thousand more user32 win winetests should be executed now
Modified:
trunk/reactos/dll/win32/user32/windows/nonclient.c
Modified: trunk/reactos/dll/win32/user32/windows/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/n…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/nonclient.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/nonclient.c [iso-8859-1] Sat Apr 18 20:25:18
2009
@@ -502,7 +502,13 @@
DWORD Style = GetClassLongW(hWnd, GCL_STYLE);
DWORD ExStyle;
SIZE WindowBorders;
- RECT OrigRect = *Rect;
+ RECT OrigRect;
+
+ if (Rect == NULL)
+ {
+ return Result;
+ }
+ OrigRect = *Rect;
if (CalcSizeStruct)
{