|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH 2/2] Handle DBT_DEVICEREMOVEPENDING and DBT_DEVICEREMOVECOMPLETE
From: Owen Smith <owen.smith@xxxxxxxxxx>
When surprise removed, DBT_DEVICEQUERYREMOVE is not called, and
the handles opened by the service need closing before the driver
gets the IRP_MN_REMOVE_DEVICE Irp.
Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
msbuild.bat | 0
src/monitor/monitor.c | 2 ++
2 files changed, 2 insertions(+)
mode change 100644 => 100755 msbuild.bat
diff --git a/msbuild.bat b/msbuild.bat
old mode 100644
new mode 100755
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 89f5f56..08ae0f2 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -1122,6 +1122,8 @@ MonitorCtrlHandlerEx(
break;
case DBT_DEVICEQUERYREMOVE:
+ case DBT_DEVICEREMOVEPENDING:
+ case DBT_DEVICEREMOVECOMPLETE:
if (Header->dbch_devicetype == DBT_DEVTYP_HANDLE) {
PDEV_BROADCAST_HANDLE Device = EventData;
--
2.8.3
_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |