diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-03 22:02:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-03 22:02:21 +0300 |
commit | 2ca0c9066534beab0279ec0cefe35a56bebe44b7 (patch) | |
tree | 1017dde34c3505e00779378de95dbd46ce47c947 | |
parent | 88b7a6c4be4645c6c6cc2ca4446ad5543d429b62 (diff) |
unneeded option removed
-rw-r--r-- | plugins/Db3x_mmap/src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index 3e3db8301b..aea65a0ddf 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -89,7 +89,7 @@ static MDatabaseCommon* LoadDatabase(const wchar_t *profile, BOOL bReadOnly) int errorCode;
CMStringW wszBackupName(profile);
wszBackupName.Append(L".bak");
- if (!MoveFileExW(profile, wszBackupName, MOVEFILE_WRITE_THROUGH | MOVEFILE_REPLACE_EXISTING)) {
+ if (!MoveFileW(profile, wszBackupName)) {
Netlib_LogfW(nullptr, L"Cannot move old profile '%s' to '%s': error %d", profile, wszBackupName.c_str(), GetLastError());
return nullptr;
}
|