Commit 68f23a11 authored by Erich E. Hoover's avatar Erich E. Hoover Committed by Alexandre Julliard

ntoskrnl.exe: Improve IoGetDeviceObjectPointer stub to appease SecuROM 5.x.

parent 2b59cf84
......@@ -1009,10 +1009,16 @@ NTSTATUS WINAPI IoGetDeviceInterfaces( const GUID *InterfaceClassGuid,
*/
NTSTATUS WINAPI IoGetDeviceObjectPointer( UNICODE_STRING *name, ACCESS_MASK access, PFILE_OBJECT *file, PDEVICE_OBJECT *device )
{
static DEVICE_OBJECT stub_device;
static DRIVER_OBJECT stub_driver;
FIXME( "stub: %s %x %p %p\n", debugstr_us(name), access, file, device );
stub_device.StackSize = 0x80; /* minimum value to appease SecuROM 5.x */
stub_device.DriverObject = &stub_driver;
*file = NULL;
*device = NULL;
*device = &stub_device;
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