]> git.bitcoin.ninja Git - rust-lightning/commitdiff
fix dwReplaceFlags
authorValentine Wallace <vwallace@protonmail.com>
Wed, 17 Feb 2021 17:09:01 +0000 (12:09 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 17 Feb 2021 17:09:01 +0000 (12:09 -0500)
lightning-persister/src/util.rs

index 9e27c17cc7f3a377f536f0ea628970e5e83b8ce3..774046d2e5e2231a214ae8aa6da17510c0b0f718 100644 (file)
@@ -107,7 +107,7 @@ pub(crate) fn write_to_file<D: DiskWriteable>(path: String, filename: String, da
                // )});
                unsafe {winapi::um::winbase::ReplaceFileW(
                        path_to_windows_str(src).as_ptr(), path_to_windows_str(dst).as_ptr(), path_to_windows_str(backup_filepath).as_ptr(),
-                       winapi::um::winbase::MOVEFILE_WRITE_THROUGH | winapi::um::winbase::MOVEFILE_REPLACE_EXISTING, std::ptr::null_mut() as *mut winapi::ctypes::c_void, std::ptr::null_mut() as *mut winapi::ctypes::c_void
+                       winapi::um::winbase::REPLACEFILE_IGNORE_MERGE_ERRORS, std::ptr::null_mut() as *mut winapi::ctypes::c_void, std::ptr::null_mut() as *mut winapi::ctypes::c_void
                )};
                println!("VMW: renamed");
        }