From dbc0c3775058f1709299ba125f3bcb8f10c65601 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 28 Apr 2025 21:16:05 +0200 Subject: [PATCH] [UMPNPMGR] Typo: Handle device interface removal events properly --- base/services/umpnpmgr/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/services/umpnpmgr/event.c b/base/services/umpnpmgr/event.c index feb430d00cf..4fc848e8180 100644 --- a/base/services/umpnpmgr/event.c +++ b/base/services/umpnpmgr/event.c @@ -157,7 +157,7 @@ ProcessDeviceClassChangeEvent( DPRINT("Interface arrival: %S\n", PnpEvent->DeviceClass.SymbolicLinkName); SendMessageW((HANDLE)pNotifyData->hRecipient, WM_DEVICECHANGE, DBT_DEVICEARRIVAL, (LPARAM)pData); } - else if (UuidEqual(&PnpEvent->EventGuid, (UUID*)&GUID_DEVICE_INTERFACE_ARRIVAL, &RpcStatus)) + else if (UuidEqual(&PnpEvent->EventGuid, (UUID*)&GUID_DEVICE_INTERFACE_REMOVAL, &RpcStatus)) { DPRINT("Interface removal: %S\n", PnpEvent->DeviceClass.SymbolicLinkName); SendMessageW((HANDLE)pNotifyData->hRecipient, WM_DEVICECHANGE, DBT_DEVICEREMOVECOMPLETE, (LPARAM)pData);