mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
Don't empty the DriverObject extension if it is already initialized and filled
svn path=/trunk/; revision=15379
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user