- I accidently ommited two '*' and caused a random crashes when DriverEntry didn't return STATUS_SUCCESS.

svn path=/trunk/; revision=8905
This commit is contained in:
Filip Navara 2004-03-28 17:08:55 +00:00
parent c05238d39f
commit 0831947d6c

View file

@ -1,4 +1,4 @@
/* $Id: driver.c,v 1.42 2004/03/28 17:01:10 navaraf Exp $ /* $Id: driver.c,v 1.43 2004/03/28 17:08:55 navaraf Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -560,8 +560,8 @@ IopInitializeDriverModule(
Status = DriverEntry(*DriverObject, &RegistryKey); Status = DriverEntry(*DriverObject, &RegistryKey);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
ObMakeTemporaryObject(DriverObject); ObMakeTemporaryObject(*DriverObject);
ObDereferenceObject(DriverObject); ObDereferenceObject(*DriverObject);
return Status; return Status;
} }