Skip to content

Commit a17e808

Browse files
committed
fix prior commit reversed order of args for MoveFileExW()
1 parent f124361 commit a17e808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int zsv_replace_file(const void *src, const void *dest) {
6464
zsv_win_to_unicode(dest, wdest, ARRAY_SIZE(wdest));
6565
zsv_win_to_unicode(src, wsrc, ARRAY_SIZE(wsrc));
6666

67-
if(MoveFileExW(wdest, wsrc, MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH)) // success
67+
if(MoveFileExW(wsrc, wdest, MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH)) // success
6868
return 0;
6969

7070
if(GetLastError() == 2) // file not found, could be target. use simple rename

0 commit comments

Comments
 (0)