mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
In Windows uses the long path format also for rename to ensure that operation in very deep dirs don't fail.
This commit is contained in:
parent
cc21721b2a
commit
21b0645170
1 changed files with 1 additions and 1 deletions
2
mingw.c
2
mingw.c
|
|
@ -660,7 +660,7 @@ int windows_rename(const char* a, const char* b)
|
|||
* Is an atomic file rename (with overwrite) possible on Windows?
|
||||
* http://stackoverflow.com/questions/167414/is-an-atomic-file-rename-with-overwrite-possible-on-windows
|
||||
*/
|
||||
if (!MoveFileExW(convert(a), u8tou16(b), MOVEFILE_REPLACE_EXISTING)) {
|
||||
if (!MoveFileExW(convert(a), convert(b), MOVEFILE_REPLACE_EXISTING)) {
|
||||
windows_errno(GetLastError());
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue