[WIN32K:NTUSER]

- Fix some GetWindowPlacement tests
CORE-9578

svn path=/trunk/; revision=67333
This commit is contained in:
Thomas Faber 2015-04-21 10:14:12 +00:00
parent c45bd159ff
commit 45c2f87c87
2 changed files with 5 additions and 6 deletions

View file

@ -3038,20 +3038,18 @@ NtUserGetWindowPlacement(HWND hWnd,
}
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);

View file

@ -39,6 +39,7 @@ START_TEST(GetWindowPlacement)
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();