Forgetting to save really sucks. Sorry again for the wasted commit.
[reactos.git] / rostests / drivers / kmtest / ntos_ob.c
index 1b54dac..9f5f71c 100644 (file)
@@ -26,7 +26,7 @@
 #include <ddk/ntifs.h>
 #include "kmtest.h"
 
-//#define NDEBUG
+#define NDEBUG
 #include "debug.h"
 
 #include "ntndk.h"
@@ -201,10 +201,10 @@ ObtCreateObjectTypes()
         ObTypeInitializer[i].ParseProcedure = (OB_PARSE_METHOD)ParseProc;
         //ObTypeInitializer[i].OkayToCloseProcedure =
         //    (OB_OKAYTOCLOSE_METHOD)OkayToCloseProc;
-        
+
         //ObTypeInitializer[i].QueryNameProcedure =
         //    (OB_QUERYNAME_METHOD)QueryNameProc;
-        
+
         //ObTypeInitializer[i].SecurityProcedure =
         // (OB_SECURITY_METHOD)SecurityProc;
 
@@ -284,7 +284,7 @@ ObtCreateObjects()
     QueryNameSave=QueryNameCount;
 
     Status = ObInsertObject(ObBody[1], NULL, GENERIC_ALL, 0,
-        &ObBody[1], &ObHandle1[1]); 
+        &ObBody[1], &ObHandle1[1]);
     ok(Status == STATUS_SUCCESS,
         "Failed to insert object 1 with status=0x%lX", Status);
     ok(ObBody[1] != NULL, "Object body = NULL");
@@ -324,7 +324,7 @@ ObtCreateObjects()
         "Object insertion should have failed, but got 0x%lX", Status);
     ok(ObBody[0] == ObBody1[1],
         "Object bodies doesn't match, 0x%p != 0x%p", ObBody[0], ObBody1[1]);
-    ok(ObHandle2[0] != NULL, "Bad handle returned 0x%lX", (ULONG)ObHandle2[0]);
+    ok(ObHandle2[0] != NULL, "Bad handle returned 0x%lX", (ULONG_PTR)ObHandle2[0]);
 
     DPRINT1("%d %d %d %d %d %d %d\n", DumpCount, OpenCount, // deletecount+1
         CloseCount, DeleteCount, ParseCount, OkayToCloseCount, QueryNameCount);
@@ -487,8 +487,7 @@ ObtReferenceTests()
 /* PUBLIC FUNCTIONS ***********************************************************/
 
 VOID
-FASTCALL
-NtoskrnlObTest()
+NtoskrnlObTest(HANDLE KeyHandle)
 {
     StartTest();
 
@@ -516,5 +515,5 @@ NtoskrnlObTest()
     ObtClose();
     DPRINT("Cleanup done\n");
 
-    FinishTest("NTOSKRNL Ob Manager");
+    FinishTest(KeyHandle, L"ObMgrTest");
 }