Removed a wrong additional reference in IoCreateDevice.

svn path=/trunk/; revision=14766
This commit is contained in:
Hartmut Birr 2005-04-23 10:16:18 +00:00
parent ed7c0b9e7c
commit 4db3d406aa

View file

@ -511,8 +511,6 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
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 */