Alexandre Julliard : mountmgr: Don' t access the IRP after it has been completed.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 4 09:22:17 CST 2015
Module: wine
Branch: master
Commit: 41eb2fd714c18422381f46e8b4f3608c06bef627
URL: http://source.winehq.org/git/wine.git/?a=commit;h=41eb2fd714c18422381f46e8b4f3608c06bef627
Author: Alexandre Julliard <julliard at 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 */
More information about the wine-cvs
mailing list