Removed a wrong additional reference in IoCreateDevice.
Modified: trunk/reactos/ntoskrnl/io/device.c
_____
Modified: trunk/reactos/ntoskrnl/io/device.c
--- trunk/reactos/ntoskrnl/io/device.c 2005-04-23 10:15:49 UTC (rev
14765)
+++ trunk/reactos/ntoskrnl/io/device.c 2005-04-23 10:16:18 UTC (rev
14766)
@@ -511,8 +511,6 @@
CreatedDeviceObject->NextDevice = DriverObject->DeviceObject;
DriverObject->DeviceObject = CreatedDeviceObject;
- /* Close the temporary handle, but do an extra reference first so
it doesn't die */
- ObReferenceObject(CreatedDeviceObject);
NtClose(TempHandle);
/* Return to caller */