mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- kmtest: Don't use user mode types
- memtest: uh, no. ZwQuerySystemInformation does not return NO_ERROR svn path=/trunk/; revision=37667
This commit is contained in:
parent
7648ed6672
commit
1afa5e29a0
2 changed files with 5 additions and 5 deletions
|
@ -48,7 +48,7 @@ VOID NtoskrnlIoMdlTest()
|
||||||
|
|
||||||
ok(Mdl == NULL,
|
ok(Mdl == NULL,
|
||||||
"IoAllocateMdl should fail allocation of 2Gb or more, but got Mdl=0x%X",
|
"IoAllocateMdl should fail allocation of 2Gb or more, but got Mdl=0x%X",
|
||||||
(UINT)Mdl);
|
(UINT32)Mdl);
|
||||||
|
|
||||||
if (Mdl)
|
if (Mdl)
|
||||||
IoFreeMdl(Mdl);
|
IoFreeMdl(Mdl);
|
||||||
|
@ -59,10 +59,10 @@ VOID NtoskrnlIoMdlTest()
|
||||||
ok(Mdl != NULL, "Mdl allocation failed");
|
ok(Mdl != NULL, "Mdl allocation failed");
|
||||||
// Check fields of the allocated struct
|
// Check fields of the allocated struct
|
||||||
ok(Mdl->Next == NULL, "Mdl->Next should be NULL, but is 0x%X",
|
ok(Mdl->Next == NULL, "Mdl->Next should be NULL, but is 0x%X",
|
||||||
(UINT)Mdl->Next);
|
(UINT32)Mdl->Next);
|
||||||
ok(Mdl->ByteCount == MdlSize,
|
ok(Mdl->ByteCount == MdlSize,
|
||||||
"Mdl->ByteCount should be equal to MdlSize, but is 0x%X",
|
"Mdl->ByteCount should be equal to MdlSize, but is 0x%X",
|
||||||
(UINT)Mdl->ByteCount);
|
(UINT32)Mdl->ByteCount);
|
||||||
// TODO: Check other fields of MDL struct
|
// TODO: Check other fields of MDL struct
|
||||||
|
|
||||||
IoFreeMdl(Mdl);
|
IoFreeMdl(Mdl);
|
||||||
|
@ -72,7 +72,7 @@ VOID NtoskrnlIoMdlTest()
|
||||||
Mdl = IoAllocateMdl(VirtualAddress, MdlSize, FALSE, FALSE, Irp);
|
Mdl = IoAllocateMdl(VirtualAddress, MdlSize, FALSE, FALSE, Irp);
|
||||||
ok(Mdl != NULL, "Mdl allocation failed");
|
ok(Mdl != NULL, "Mdl allocation failed");
|
||||||
ok(Irp->MdlAddress == Mdl, "Irp->MdlAddress should be 0x%X, but is 0x%X",
|
ok(Irp->MdlAddress == Mdl, "Irp->MdlAddress should be 0x%X, but is 0x%X",
|
||||||
(UINT)Mdl, (UINT)Irp->MdlAddress);
|
(UINT32)Mdl, (UINT32)Irp->MdlAddress);
|
||||||
|
|
||||||
IoFreeMdl(Mdl);
|
IoFreeMdl(Mdl);
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ MonitorThread(PVOID Ignored)
|
||||||
if (ZwQuerySystemInformation(SystemPerformanceInformation,
|
if (ZwQuerySystemInformation(SystemPerformanceInformation,
|
||||||
(PVOID) &PerformanceInfo,
|
(PVOID) &PerformanceInfo,
|
||||||
sizeof(SYSTEM_PERFORMANCE_INFORMATION),
|
sizeof(SYSTEM_PERFORMANCE_INFORMATION),
|
||||||
&Length) != NO_ERROR)
|
&Length) != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue