ntoskrnl.exe: Improve IoGetDeviceObjectPointer stub to appease SecuROM 5.x.
This commit is contained in:
parent
2b59cf84be
commit
68f23a1138
dlls/ntoskrnl.exe
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue