From 7e68975e35c5a8f5f64f6b2ce70fa4fed59f3439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 17 May 2005 17:39:50 +0000 Subject: [PATCH] Don't empty the DriverObject extension if it is already initialized and filled svn path=/trunk/; revision=15379 --- reactos/ntoskrnl/io/driver.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/driver.c b/reactos/ntoskrnl/io/driver.c index 700414946a5..c8d05a43fc3 100644 --- a/reactos/ntoskrnl/io/driver.c +++ b/reactos/ntoskrnl/io/driver.c @@ -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(