mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[WIN32K:NTUSER]
- Fix some GetWindowPlacement tests CORE-9578 svn path=/trunk/; revision=67333
This commit is contained in:
parent
c45bd159ff
commit
45c2f87c87
2 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue