Author: fireball
Date: Mon Nov 26 00:04:44 2007
New Revision: 30760
URL:
http://svn.reactos.org/svn/reactos?rev=30760&view=rev
Log:
- Fix an awful mistake, which made any request to unload a driver to end up in a BSOD
(reading of an uninitialized variable, and again GCC silently missed that).
Modified:
trunk/reactos/ntoskrnl/io/iomgr/driver.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/driver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/driver.c…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/driver.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/driver.c Mon Nov 26 00:04:44 2007
@@ -1502,14 +1502,14 @@
NTSTATUS Status;
ULONG Type;
PDEVICE_NODE DeviceNode;
+ PDRIVER_OBJECT DriverObject;
PLDR_DATA_TABLE_ENTRY ModuleObject;
- PDRIVER_OBJECT DriverObject;
WCHAR *cur;
/* Check if it's an unload request */
if (LoadParams->DriverObject)
{
- (*DriverObject->DriverUnload)(DriverObject);
+ (*LoadParams->DriverObject->DriverUnload)(LoadParams->DriverObject);
/* Return success and signal the event */
LoadParams->Status = STATUS_SUCCESS;