- Fix another wine test for SetWindowPos.

svn path=/trunk/; revision=38733
This commit is contained in:
James Tabor 2009-01-12 20:00:41 +00:00
parent 10462d3a41
commit 9378c725cf

View file

@ -4302,6 +4302,22 @@ NtUserSetWindowPos(
RETURN(FALSE);
}
/* First make sure that coordinates are valid for WM_WINDOWPOSCHANGING */
if (!(uFlags & SWP_NOMOVE))
{
if (X < -32768) X = -32768;
else if (X > 32767) X = 32767;
if (Y < -32768) Y = -32768;
else if (Y > 32767) Y = 32767;
}
if (!(uFlags & SWP_NOSIZE))
{
if (cx < 0) cx = 0;
else if (cx > 32767) cx = 32767;
if (cy < 0) cy = 0;
else if (cy > 32767) cy = 32767;
}
UserRefObjectCo(Window, &Ref);
ret = co_WinPosSetWindowPos(Window, hWndInsertAfter, X, Y, cx, cy, uFlags);
UserDerefObjectCo(Window);