Commit b0897490 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

setupapi: Only copy driver info if SetupDiEnumDriverInfoW succeeded (Valgrind).

parent c85b1405
......@@ -4716,7 +4716,8 @@ BOOL WINAPI SetupDiEnumDriverInfoA(HDEVINFO devinfo, SP_DEVINFO_DATA *device_dat
driver_dataW.cbSize = sizeof(driver_dataW);
ret = SetupDiEnumDriverInfoW(devinfo, device_data, type, index, &driver_dataW);
driver_data_wtoa(driver_data, &driver_dataW);
if (ret) driver_data_wtoa(driver_data, &driver_dataW);
return ret;
}
......
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