Module: wine Branch: master Commit: 9ccf51e3c12b95d06b5cf8bfffc3b5990977146f URL: https://source.winehq.org/git/wine.git/?a=commit;h=9ccf51e3c12b95d06b5cf8bff... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Sun Aug 19 15:23:14 2018 -0500 setupapi: Only delete unregistered device interfaces when deleting a device. Fixes a regression introduced by 86d26dded5560d6d8adb195372f0676d1f7229b0. Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 4d53bd7..71356e8 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -524,7 +524,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);