fix premature close og reg key

svn path=/trunk/; revision=16417
This commit is contained in:
Gunnar Dalsnes
2005-07-04 22:22:22 +00:00
parent 541151ea53
commit cf3c6e6296
+3 -1
View File
@@ -1391,7 +1391,7 @@ BOOL WINAPI SetupDiInstallClassW(
SetupCloseInfFile(hInf);
return FALSE;
}
RegCloseKey(hClassKey);
/* Try to append a layout file */
@@ -1414,6 +1414,7 @@ BOOL WINAPI SetupDiInstallClassW(
if (FileQueue == INVALID_HANDLE_VALUE)
{
SetupCloseInfFile(hInf);
RegCloseKey(hClassKey);
return FALSE;
}
@@ -1441,6 +1442,7 @@ BOOL WINAPI SetupDiInstallClassW(
SetupCloseInfFile(hInf);
RegCloseKey(hClassKey);
return TRUE;
}