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/controll…
==============================================================================
--- 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);