mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 00:50:23 +00:00
- Fix another wine test for SetWindowPos.
svn path=/trunk/; revision=38733
This commit is contained in:
parent
10462d3a41
commit
9378c725cf
1 changed files with 16 additions and 0 deletions
|
@ -4302,6 +4302,22 @@ NtUserSetWindowPos(
|
||||||
RETURN(FALSE);
|
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);
|
UserRefObjectCo(Window, &Ref);
|
||||||
ret = co_WinPosSetWindowPos(Window, hWndInsertAfter, X, Y, cx, cy, uFlags);
|
ret = co_WinPosSetWindowPos(Window, hWndInsertAfter, X, Y, cx, cy, uFlags);
|
||||||
UserDerefObjectCo(Window);
|
UserDerefObjectCo(Window);
|
||||||
|
|
Loading…
Reference in a new issue