- Clean up the DB directory if extracting failed

svn path=/branches/GSoC_2017/rapps/; revision=75660
This commit is contained in:
Alexander Shaposhnikov
2017-08-24 21:56:27 +00:00
parent c41df30066
commit f65f506032
+4
View File
@@ -268,6 +268,10 @@ BOOL ExtractFilesFromCab(LPCWSTR lpCabName, LPCWSTR lpOutputPath)
FreeLibrary(hCabinetDll);
return TRUE;
}
else
{
RemoveDirectoryW(lpOutputPath);
}
}
}
FreeLibrary(hCabinetDll);