Commit 8f1d1c53 authored by Derek Lesho's avatar Derek Lesho Committed by Alexandre Julliard

ntoskrnl: Set DriverStart and DriverSize fields in DRIVER_OBJECT.

parent 67949d96
......@@ -3645,6 +3645,8 @@ static NTSTATUS WINAPI init_driver( DRIVER_OBJECT *driver_object, UNICODE_STRING
return STATUS_DLL_INIT_FAILED;
driver_object->DriverSection = find_ldr_module( module );
driver_object->DriverStart = ((LDR_DATA_TABLE_ENTRY *)driver_object->DriverSection)->DllBase;
driver_object->DriverSize = ((LDR_DATA_TABLE_ENTRY *)driver_object->DriverSection)->SizeOfImage;
nt = RtlImageNtHeader( module );
if (!nt->OptionalHeader.AddressOfEntryPoint) return STATUS_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment