Don't empty the DriverObject extension if it is already initialized and filled

svn path=/trunk/; revision=15379
This commit is contained in:
Hervé Poussineau 2005-05-17 17:39:50 +00:00
parent 9c34575fb2
commit 7e68975e35

View file

@ -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(