* Call RtlCreateUnicodeString() instead of RtlInitUnicodeString() when
authorCasper Hornstrup <chorns@users.sourceforge.net>
Wed, 12 Jun 2002 14:05:03 +0000 (14:05 +0000)
committerCasper Hornstrup <chorns@users.sourceforge.net>
Wed, 12 Jun 2002 14:05:03 +0000 (14:05 +0000)
commita07b0d8b8e7b3952516218271289a585b8aacef7
tree3e317eae57aac905f588d3ec58d87e9bd38d2bfd
parent72a2cedd0a24897d051e18826cf18ef31c939ac2
* Call RtlCreateUnicodeString() instead of RtlInitUnicodeString() when
  initializing the DeviceNode->ServiceName, since IopFreeDeviceNode()
  will use RtlFreeUnicodeString() on it.

* Call ObDereferenceObject() instead of ExFreePool() to release the
  DeviceObject if DriverEntry fails.
  Patch from Joseph Galbraith.

svn path=/trunk/; revision=3053
reactos/ntoskrnl/io/device.c
reactos/ntoskrnl/io/driver.c
reactos/ntoskrnl/ldr/loader.c