[win] fix bug 62585

This commit is contained in:
SimplestStudio
2023-05-14 16:12:49 +03:00
parent 3ada075f37
commit 2c94083060

View File

@ -135,6 +135,7 @@ int unzipArchive(const wstring &zipFilePath, const wstring &folderPath, std::ato
CComPtr<Folder> pSrcFolder;
if (!StringToFolder(pShell, pSrcFolder, file)) {
pShell.Release();
CoUninitialize();
return UNZIP_ERROR;
}
@ -143,6 +144,8 @@ int unzipArchive(const wstring &zipFilePath, const wstring &folderPath, std::ato
vOptions.vt = VT_I4;
vOptions.lVal = 1024 | 512 | 16 | 4;
int res = extractRecursively(pShell, pSrcFolder, path, vOptions, run);
pSrcFolder.Release();
pShell.Release();
CoUninitialize();
return res;
}