fix premature close og reg key
Modified: trunk/reactos/lib/setupapi/devinst.c
_____
Modified: trunk/reactos/lib/setupapi/devinst.c
--- trunk/reactos/lib/setupapi/devinst.c 2005-07-04 22:11:00 UTC
(rev 16416)
+++ trunk/reactos/lib/setupapi/devinst.c 2005-07-04 22:22:22 UTC
(rev 16417)
@@ -1391,9 +1391,9 @@
SetupCloseInfFile(hInf);
return FALSE;
}
- RegCloseKey(hClassKey);
+
/* Try to append a layout file */
#if 0
SetupOpenAppendInfFileW(NULL, hInf, NULL);
@@ -1414,6 +1414,7 @@
if (FileQueue == INVALID_HANDLE_VALUE)
{
SetupCloseInfFile(hInf);
+ RegCloseKey(hClassKey);
return FALSE;
}
@@ -1441,6 +1442,7 @@
SetupCloseInfFile(hInf);
+ RegCloseKey(hClassKey);
return TRUE;
}
Show replies by date