[PATCH] setupapi: Only delete unregistered device interfaces when deleting a device.
Zebediah Figura
z.figura12 at gmail.com
Sun Aug 19 15:23:14 CDT 2018
Fixes a regression introduced by 86d26dded5560d6d8adb195372f0676d1f7229b0.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/setupapi/devinst.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index e388a28..6986fb5 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -499,7 +499,7 @@ static void SETUPDI_RemoveDevice(struct device *device)
struct device_iface, entry)
{
list_remove(&iface->entry);
- if ((path = get_refstr_key_path(iface)))
+ if (device->phantom && (path = get_refstr_key_path(iface)))
{
RegDeleteKeyW(HKEY_LOCAL_MACHINE, path);
heap_free(path);
--
2.7.4
More information about the wine-devel
mailing list