Kaydet (Commit) 3f8a48f5 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: windows prevents moving file with open file handles

Change-Id: Iebd4886f3d44f816fc06b7c80e7368bbac3d159a
üst 575cf048
......@@ -651,6 +651,7 @@ void download_file(const OUString& rURL, size_t nFileSize, const OUString& rHash
OUString aDestFile = aPatchDirURL + aFileName;
Updater::log("Destination File: " + aDestFile);
aDownloadedFile.close();
eError = osl::File::move(aTempFile, aDestFile);
handle_file_error(eError, "Could not move the file from the Temp directory to the user config: TempFile: " + aTempFile + "; DestFile: " + aDestFile);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment