mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- 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).
svn path=/trunk/; revision=30760
This commit is contained in:
@@ -1502,14 +1502,14 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
|
||||
NTSTATUS Status;
|
||||
ULONG Type;
|
||||
PDEVICE_NODE DeviceNode;
|
||||
PLDR_DATA_TABLE_ENTRY ModuleObject;
|
||||
PDRIVER_OBJECT DriverObject;
|
||||
PLDR_DATA_TABLE_ENTRY ModuleObject;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user