Signed-off-by: Sven Baars sbaars@codeweavers.com --- dlls/setupapi/devinst.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 7be1a34669..2d8e77eef0 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -4886,7 +4886,10 @@ BOOL WINAPI SetupDiGetDriverInfoDetailA(HDEVINFO devinfo, SP_DEVINFO_DATA *devic if (ret_size) *ret_size = size_needed; if (!detail_data) + { + SetupCloseInfFile(hinf); return TRUE; + }
detail_data->CompatIDsLength = detail_data->CompatIDsOffset = 0; detail_data->HardwareID[0] = 0;