Commit cb796441 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntoskrnl: Do not destroy the device list in enumerate_new_device().

parent cd27f3ca
......@@ -336,7 +336,6 @@ static void enumerate_new_device( DEVICE_OBJECT *device, HDEVINFO set )
&& !SetupDiOpenDeviceInfoW( set, device_instance_id, NULL, 0, &sp_device ))
{
ERR("Failed to create or open device %s, error %#x.\n", debugstr_w(device_instance_id), GetLastError());
SetupDiDestroyDeviceInfoList( set );
return;
}
......@@ -353,10 +352,7 @@ static void enumerate_new_device( DEVICE_OBJECT *device, HDEVINFO set )
}
if (need_driver && !install_device_driver( device, set, &sp_device ))
{
SetupDiDestroyDeviceInfoList( set );
return;
}
start_device( device, set, &sp_device );
}
......
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