diff options
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 8634b156e1..72d7e5fd4a 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -589,9 +589,7 @@ int BackupFile(wchar_t *pwszSrcFileName, wchar_t *pwszBackFileName) {
SafeCreateFilePath(pwszBackFileName);
- if (int iErrorCode = SafeMoveFile(pwszSrcFileName, pwszBackFileName))
- return iErrorCode;
- return 0;
+ return SafeMoveFile(pwszSrcFileName, pwszBackFileName);
}
/////////////////////////////////////////////////////////////////////////////////////////
|