From 3e1e519f2e4d408c19f4ea1110d0a91ec9bdff9e Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Mon, 8 Nov 2004 01:46:12 +0000 Subject: [PATCH] don't return uninitialized variable. thx to Alex. svn path=/trunk/; revision=11594 --- reactos/ntoskrnl/io/pnpmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr.c index 4993d54e0e5..d4a487d1a19 100644 --- a/reactos/ntoskrnl/io/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr.c @@ -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);