ntoskrnl.exe: Improve IoGetDeviceObjectPointer stub to appease SecuROM 5.x.
This commit is contained in:
parent
2b59cf84be
commit
68f23a1138
@ -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 )
|
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 );
|
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;
|
*file = NULL;
|
||||||
*device = NULL;
|
*device = &stub_device;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user