Use mocked version of MoveFileExW in wal.c

This commit is contained in:
2025-11-17 22:34:38 +01:00
parent ba4936f565
commit 94744ede6f
+1 -1
View File
@@ -186,7 +186,7 @@ static int swap_file(WAL *wal)
}
// MOVEFILE_REPLACE_EXISTING allows atomic overwrite
if (!MoveFileExW(temp_path_w, old_path_w, MOVEFILE_REPLACE_EXISTING)) {
if (!sys_MoveFileExW(temp_path_w, old_path_w, MOVEFILE_REPLACE_EXISTING)) {
file_unlock(temp_handle);
file_close(temp_handle);
remove_file_or_dir(temp_path);