From 0bd016f724f2298e5c5dedc7d903afe0ed95e76c Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 17 Feb 2021 12:09:01 -0500 Subject: [PATCH] fix dwReplaceFlags --- lightning-persister/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5