Commit 9ccf51e3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

setupapi: Only delete unregistered device interfaces when deleting a device.

Fixes a regression introduced by 86d26dde. Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e525e499
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment