From 0b7160fb2ae9797b78050479544cdd55f06cdf43 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Aug 2020 22:35:21 +0300 Subject: Plugin Updater: if a file doesn't exist, it shoudn't generate an error too --- plugins/PluginUpdater/src/Utils.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 33acef4b87..dcb7fcb2c0 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -490,6 +490,7 @@ int SafeMoveFile(const wchar_t *pSrc, const wchar_t *pDst) if (!MoveFileW(pSrc, pDst)) { // use copy on error switch (DWORD dwError = GetLastError()) { case ERROR_ALREADY_EXISTS: + case ERROR_FILE_NOT_FOUND: return 0; // this file was included into many archives, so Miranda tries to move it again & again case ERROR_ACCESS_DENIED: -- cgit v1.2.3