mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +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));
|
Status = MmCopyFromCaller(&Safepl, lpwndpl, sizeof(WINDOWPLACEMENT));
|
||||||
if(!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
RETURN( FALSE);
|
RETURN( FALSE);
|
||||||
}
|
}
|
||||||
if(Safepl.length != sizeof(WINDOWPLACEMENT))
|
|
||||||
{
|
Safepl.length = sizeof(WINDOWPLACEMENT);
|
||||||
RETURN( FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
IntGetWindowPlacement(Wnd, &Safepl);
|
IntGetWindowPlacement(Wnd, &Safepl);
|
||||||
|
|
||||||
Status = MmCopyToCaller(lpwndpl, &Safepl, sizeof(WINDOWPLACEMENT));
|
Status = MmCopyToCaller(lpwndpl, &Safepl, sizeof(WINDOWPLACEMENT));
|
||||||
if(!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
RETURN( FALSE);
|
RETURN( FALSE);
|
||||||
|
|
|
@ -39,6 +39,7 @@ START_TEST(GetWindowPlacement)
|
||||||
ok(ret == FALSE, "ret = %d\n", ret);
|
ok(ret == FALSE, "ret = %d\n", ret);
|
||||||
ok(error == ERROR_NOACCESS, "error = %lu\n", error);
|
ok(error == ERROR_NOACCESS, "error = %lu\n", error);
|
||||||
|
|
||||||
|
FillMemory(buffer, sizeof(buffer), 0x55);
|
||||||
SetLastError(0xfeedfab1);
|
SetLastError(0xfeedfab1);
|
||||||
ret = GetWindowPlacement(GetDesktopWindow(), (PVOID)(ALIGN_UP_BY(buffer, 16) + 1));
|
ret = GetWindowPlacement(GetDesktopWindow(), (PVOID)(ALIGN_UP_BY(buffer, 16) + 1));
|
||||||
error = GetLastError();
|
error = GetLastError();
|
||||||
|
|
Loading…
Reference in a new issue