From 2ca0c9066534beab0279ec0cefe35a56bebe44b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 22:02:21 +0300 Subject: unneeded option removed --- plugins/Db3x_mmap/src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Db3x_mmap/src/init.cpp') 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; } -- cgit v1.2.3