mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
[WIN32K:NTUSER]
- Fix some GetWindowPlacement tests CORE-9578 svn path=/trunk/; revision=67333
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user