[1/2] mountmgr: Add a stub implementation of ioctl 0x560000.
Hans Leidekker
hans at codeweavers.com
Mon Jan 31 04:31:46 CST 2011
Office 2010 activation needs this. See http://bugs.winehq.org/show_bug.cgi?id=25478
---
dlls/mountmgr.sys/device.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 6c182e8..e23d741 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -896,6 +896,16 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
case IOCTL_CDROM_READ_TOC:
irp->IoStatus.u.Status = STATUS_INVALID_DEVICE_REQUEST;
break;
+ case 0x560000:
+ {
+ DWORD len = min( 32, irpsp->Parameters.DeviceIoControl.OutputBufferLength );
+
+ FIXME( "returning zero-filled buffer for ioctl 0x560000\n" );
+ memset( irp->MdlAddress->StartVa, 0, len );
+ irp->IoStatus.Information = len;
+ irp->IoStatus.u.Status = STATUS_SUCCESS;
+ break;
+ }
default:
FIXME( "unsupported ioctl %x\n", irpsp->Parameters.DeviceIoControl.IoControlCode );
irp->IoStatus.u.Status = STATUS_NOT_SUPPORTED;
--
1.7.1
More information about the wine-patches
mailing list