mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
Don't empty the DriverObject extension if it is already initialized and filled
svn path=/trunk/; revision=15379
This commit is contained in:
parent
9c34575fb2
commit
7e68975e35
1 changed files with 9 additions and 1 deletions
|
@ -217,7 +217,15 @@ IopCreateDriverObject(
|
||||||
{
|
{
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Status == STATUS_OBJECT_EXISTS)
|
||||||
|
{
|
||||||
|
/* The driver object already exists, so it is already
|
||||||
|
* initialized. Don't initialize it once more. */
|
||||||
|
*DriverObject = Object;
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/* Create driver extension */
|
/* Create driver extension */
|
||||||
Object->DriverExtension = (PDRIVER_EXTENSION)
|
Object->DriverExtension = (PDRIVER_EXTENSION)
|
||||||
ExAllocatePoolWithTag(
|
ExAllocatePoolWithTag(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue