mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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;
|
||||
}
|
||||
|
||||
|
||||
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 */
|
||||
Object->DriverExtension = (PDRIVER_EXTENSION)
|
||||
ExAllocatePoolWithTag(
|
||||
|
|
Loading…
Reference in a new issue