Author: sginsberg
Date: Wed Nov 26 12:43:27 2008
New Revision: 37667
URL:
http://svn.reactos.org/svn/reactos?rev=37667&view=rev
Log:
- kmtest: Don't use user mode types
- memtest: uh, no. ZwQuerySystemInformation does not return NO_ERROR
Modified:
trunk/rostests/drivers/kmtest/ntos_io.c
trunk/rostests/drivers/memtest/memtest.c
Modified: trunk/rostests/drivers/kmtest/ntos_io.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/drivers/kmtest/ntos_io.c?…
==============================================================================
--- trunk/rostests/drivers/kmtest/ntos_io.c [iso-8859-1] (original)
+++ trunk/rostests/drivers/kmtest/ntos_io.c [iso-8859-1] Wed Nov 26 12:43:27 2008
@@ -48,7 +48,7 @@
ok(Mdl == NULL,
"IoAllocateMdl should fail allocation of 2Gb or more, but got Mdl=0x%X",
- (UINT)Mdl);
+ (UINT32)Mdl);
if (Mdl)
IoFreeMdl(Mdl);
@@ -59,10 +59,10 @@
ok(Mdl != NULL, "Mdl allocation failed");
// Check fields of the allocated struct
ok(Mdl->Next == NULL, "Mdl->Next should be NULL, but is 0x%X",
- (UINT)Mdl->Next);
+ (UINT32)Mdl->Next);
ok(Mdl->ByteCount == MdlSize,
"Mdl->ByteCount should be equal to MdlSize, but is 0x%X",
- (UINT)Mdl->ByteCount);
+ (UINT32)Mdl->ByteCount);
// TODO: Check other fields of MDL struct
IoFreeMdl(Mdl);
@@ -72,7 +72,7 @@
Mdl = IoAllocateMdl(VirtualAddress, MdlSize, FALSE, FALSE, Irp);
ok(Mdl != NULL, "Mdl allocation failed");
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);
Modified: trunk/rostests/drivers/memtest/memtest.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/drivers/memtest/memtest.c…
==============================================================================
--- trunk/rostests/drivers/memtest/memtest.c [iso-8859-1] (original)
+++ trunk/rostests/drivers/memtest/memtest.c [iso-8859-1] Wed Nov 26 12:43:27 2008
@@ -47,7 +47,7 @@
if (ZwQuerySystemInformation(SystemPerformanceInformation,
(PVOID) &PerformanceInfo,
sizeof(SYSTEM_PERFORMANCE_INFORMATION),
- &Length) != NO_ERROR)
+ &Length) != STATUS_SUCCESS)
{
break;
}