From 5304f93ab96823f402fd0665a7c0e16330723eb2 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 18 Feb 2021 13:27:56 -0500 Subject: [PATCH] swap src and dst --- 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 1cff6dca8..4c9111ef6 100644 --- a/lightning-persister/src/util.rs +++ b/lightning-persister/src/util.rs @@ -105,7 +105,7 @@ pub(crate) fn write_to_file(path: String, filename: String, da if Path::new(&filename_with_path.clone()).exists() { unsafe {winapi::um::winbase::ReplaceFileW( - path_to_windows_str(src).as_ptr(), path_to_windows_str(dst).as_ptr(), std::ptr::null(), + path_to_windows_str(dst).as_ptr(), path_to_windows_str(src).as_ptr(), std::ptr::null(), 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 )}; } else { -- 2.39.5