[ros-diffs] [sir_richard] 49726: [NTOS]: Bugfixes for the I/O Controller Object.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Tue Nov 23 16:32:56 UTC 2010


Author: sir_richard
Date: Tue Nov 23 16:32:56 2010
New Revision: 49726

URL: http://svn.reactos.org/svn/reactos?rev=49726&view=rev
Log:
[NTOS]: Bugfixes for the I/O Controller Object.

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/controller.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/controller.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/controller.c?rev=49726&r1=49725&r2=49726&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/controller.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/controller.c [iso-8859-1] Tue Nov 23 16:32:56 2010
@@ -63,7 +63,11 @@
    PAGED_CODE();
 
    /* Initialize an empty OBA */
-   InitializeObjectAttributes(&ObjectAttributes, NULL, 0, NULL, NULL);
+   InitializeObjectAttributes(&ObjectAttributes,
+                              NULL,
+                              OBJ_KERNEL_HANDLE,
+                              NULL,
+                              NULL);
 
    /* Create the Object */
    Status = ObCreateObject(KernelMode,
@@ -87,7 +91,7 @@
    if (!NT_SUCCESS(Status)) return NULL;
 
     /* Close the dummy handle */
-    NtClose(Handle);
+    ObCloseHandle(Handle, KernelMode);
 
     /* Zero the Object and set its data */
     RtlZeroMemory(Controller, sizeof(CONTROLLER_OBJECT) + Size);




More information about the Ros-diffs mailing list