- Don't crash copying from a null pointer in a non client size calculation

- Several thousand more user32 win winetests should be executed now

svn path=/trunk/; revision=40584
This commit is contained in:
Gregor Schneider 2009-04-18 16:25:18 +00:00
parent 51d9909734
commit 35ca7ca698

View file

@ -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)
{