Alexandre Julliard : mountmgr: Don' t access the IRP after it has been completed.
Module: wine Branch: master Commit: 41eb2fd714c18422381f46e8b4f3608c06bef627 URL: http://source.winehq.org/git/wine.git/?a=commit;h=41eb2fd714c18422381f46e8b4... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Mar 4 22:18:04 2015 +0900 mountmgr: Don't access the IRP after it has been completed. --- dlls/mountmgr.sys/device.c | 2 +- dlls/mountmgr.sys/mountmgr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c index 028c17f..7ee4078 100644 --- a/dlls/mountmgr.sys/device.c +++ b/dlls/mountmgr.sys/device.c @@ -967,7 +967,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp ) LeaveCriticalSection( &device_section ); IoCompleteRequest( irp, IO_NO_INCREMENT ); - return irp->IoStatus.u.Status; + return STATUS_SUCCESS; } /* driver entry point for the harddisk driver */ diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c index 927e6e8..d7bc8d7 100644 --- a/dlls/mountmgr.sys/mountmgr.c +++ b/dlls/mountmgr.sys/mountmgr.c @@ -410,7 +410,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp ) break; } IoCompleteRequest( irp, IO_NO_INCREMENT ); - return irp->IoStatus.u.Status; + return STATUS_SUCCESS; } /* main entry point for the mount point manager driver */
participants (1)
-
Alexandre Julliard