From: Valentine Wallace Date: Wed, 17 Feb 2021 17:09:01 +0000 (-0500) Subject: fix dwReplaceFlags X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0bd016f724f2298e5c5dedc7d903afe0ed95e76c;p=rust-lightning fix dwReplaceFlags --- diff --git a/lightning-persister/src/util.rs b/lightning-persister/src/util.rs index 9e27c17cc..774046d2e 100644 --- a/lightning-persister/src/util.rs +++ b/lightning-persister/src/util.rs @@ -107,7 +107,7 @@ pub(crate) fn write_to_file(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"); }