- Check for DeviceNode->CapabilityFlags being NULL before trying to access it.

svn path=/trunk/; revision=11391
This commit is contained in:
Filip Navara 2004-10-22 20:44:48 +00:00
parent b1a58d7d7e
commit 9fb531fab6

View file

@ -1,4 +1,4 @@
/* $Id: pnpmgr.c,v 1.43 2004/10/22 20:25:54 ekohl Exp $
/* $Id: pnpmgr.c,v 1.44 2004/10/22 20:44:48 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -992,7 +992,8 @@ IopActionInterrogateDeviceStack(
{
}
if (!DeviceNode->CapabilityFlags->UniqueID)
if (DeviceNode->CapabilityFlags != NULL &&
!DeviceNode->CapabilityFlags->UniqueID)
{
DPRINT("Instance ID is not unique\n");
/* FIXME: Add information from parent bus driver to InstancePath */