From: Matt Corallo Date: Thu, 18 Feb 2021 18:27:56 +0000 (-0500) Subject: swap src and dst X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5304f93ab96823f402fd0665a7c0e16330723eb2;p=rust-lightning swap src and dst --- 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 {