We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f124361 commit a17e808Copy full SHA for a17e808
app/utils/os.c
@@ -64,7 +64,7 @@ int zsv_replace_file(const void *src, const void *dest) {
64
zsv_win_to_unicode(dest, wdest, ARRAY_SIZE(wdest));
65
zsv_win_to_unicode(src, wsrc, ARRAY_SIZE(wsrc));
66
67
- if(MoveFileExW(wdest, wsrc, MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH)) // success
+ if(MoveFileExW(wsrc, wdest, MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH)) // success
68
return 0;
69
70
if(GetLastError() == 2) // file not found, could be target. use simple rename
0 commit comments