diff --git a/reactos/drivers/test/kmtest/ntos_ob.c b/reactos/drivers/test/kmtest/ntos_ob.c index d360eac91e7..2099851a36b 100644 --- a/reactos/drivers/test/kmtest/ntos_ob.c +++ b/reactos/drivers/test/kmtest/ntos_ob.c @@ -121,7 +121,8 @@ ParseProc(IN PVOID ParseObject, OUT PVOID *Object) { DbgPrint("ParseProc() called\n"); - return STATUS_SUCCESS; + *Object = NULL; + return STATUS_OBJECT_NAME_NOT_FOUND;//STATUS_SUCCESS; } VOID @@ -260,7 +261,7 @@ ObtClose() PVOID DirObject; NTSTATUS Status; //PVOID TypeObject; - //USHORT i; + USHORT i; //UNICODE_STRING ObPathName[NUM_OBTYPES]; // Close what we have opened and free what we allocated @@ -293,13 +294,11 @@ ObtClose() "Failed to close handle with status=0x%lX", Status); // Now delete the last piece - object types - // FIXME: How to do this correctly? - /* + // In fact, it's weird to get rid of object types, especially the way, + // how it's done in the commented section below for (i=0; i