don't return uninitialized variable. thx to Alex.
authorThomas Bluemel <thomas@reactsoft.com>
Mon, 8 Nov 2004 01:46:12 +0000 (01:46 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Mon, 8 Nov 2004 01:46:12 +0000 (01:46 +0000)
svn path=/trunk/; revision=11594

reactos/ntoskrnl/io/pnpmgr.c

index 4993d54..d4a487d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: pnpmgr.c,v 1.49 2004/11/07 22:55:38 navaraf Exp $
+/* $Id: pnpmgr.c,v 1.50 2004/11/08 01:46:12 weiden Exp $
  *
  * COPYRIGHT:      See COPYING in the top level directory
  * PROJECT:        ReactOS kernel
@@ -383,7 +383,7 @@ IoOpenDeviceRegistryKey(
    else
    {
       RtlAppendUnicodeToString(&KeyName, EnumKeyName);
-      RtlAppendUnicodeStringToString(&KeyName, &DeviceNode->InstancePath);
+      Status = RtlAppendUnicodeStringToString(&KeyName, &DeviceNode->InstancePath);
       if (DeviceNode->InstancePath.Length == 0)
       {
          ExFreePool(KeyNameBuffer);