mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
- Initialize DriverObject->HardwareDatabase for newly created device objects.
svn path=/trunk/; revision=11584
This commit is contained in:
parent
22d4c31e4c
commit
96c1aa383f
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: driver.c,v 1.54 2004/09/24 10:51:35 ekohl Exp $
|
/* $Id: driver.c,v 1.55 2004/11/07 21:20:51 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -66,6 +66,9 @@ static KSPIN_LOCK DriverReinitListLock;
|
||||||
static LIST_ENTRY GroupListHead = {NULL, NULL};
|
static LIST_ENTRY GroupListHead = {NULL, NULL};
|
||||||
static LIST_ENTRY ServiceListHead = {NULL, NULL};
|
static LIST_ENTRY ServiceListHead = {NULL, NULL};
|
||||||
|
|
||||||
|
static UNICODE_STRING IopHardwareDatabaseKey =
|
||||||
|
ROS_STRING_INITIALIZER(L"\\REGISTRY\\MACHINE\\HARDWARE\\DESCRIPTION\\SYSTEM");
|
||||||
|
|
||||||
POBJECT_TYPE EXPORTED IoDriverObjectType = NULL;
|
POBJECT_TYPE EXPORTED IoDriverObjectType = NULL;
|
||||||
|
|
||||||
#define TAG_DRIVER TAG('D', 'R', 'V', 'R')
|
#define TAG_DRIVER TAG('D', 'R', 'V', 'R')
|
||||||
|
@ -162,6 +165,8 @@ IopCreateDriver(
|
||||||
for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
|
for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
|
||||||
Object->MajorFunction[i] = IopInvalidDeviceRequest;
|
Object->MajorFunction[i] = IopInvalidDeviceRequest;
|
||||||
|
|
||||||
|
Object->HardwareDatabase = &IopHardwareDatabaseKey;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue