Author: tfaber
Date: Tue Apr 21 10:14:12 2015
New Revision: 67333
URL:
http://svn.reactos.org/svn/reactos?rev=67333&view=rev
Log:
[WIN32K:NTUSER]
- Fix some GetWindowPlacement tests
CORE-9578
Modified:
trunk/reactos/win32ss/user/ntuser/winpos.c
trunk/rostests/apitests/user32/GetWindowPlacement.c
Modified: trunk/reactos/win32ss/user/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/winpos…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] Tue Apr 21 10:14:12 2015
@@ -3038,20 +3038,18 @@
}
Status = MmCopyFromCaller(&Safepl, lpwndpl, sizeof(WINDOWPLACEMENT));
- if(!NT_SUCCESS(Status))
+ if (!NT_SUCCESS(Status))
{
SetLastNtError(Status);
RETURN( FALSE);
}
- if(Safepl.length != sizeof(WINDOWPLACEMENT))
- {
- RETURN( FALSE);
- }
+
+ Safepl.length = sizeof(WINDOWPLACEMENT);
IntGetWindowPlacement(Wnd, &Safepl);
Status = MmCopyToCaller(lpwndpl, &Safepl, sizeof(WINDOWPLACEMENT));
- if(!NT_SUCCESS(Status))
+ if (!NT_SUCCESS(Status))
{
SetLastNtError(Status);
RETURN( FALSE);
Modified: trunk/rostests/apitests/user32/GetWindowPlacement.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/GetWindow…
==============================================================================
--- trunk/rostests/apitests/user32/GetWindowPlacement.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/user32/GetWindowPlacement.c [iso-8859-1] Tue Apr 21 10:14:12
2015
@@ -39,6 +39,7 @@
ok(ret == FALSE, "ret = %d\n", ret);
ok(error == ERROR_NOACCESS, "error = %lu\n", error);
+ FillMemory(buffer, sizeof(buffer), 0x55);
SetLastError(0xfeedfab1);
ret = GetWindowPlacement(GetDesktopWindow(), (PVOID)(ALIGN_UP_BY(buffer, 16) + 1));
error = GetLastError();