Index: src/OFFile.m ================================================================== --- src/OFFile.m +++ src/OFFile.m @@ -596,11 +596,11 @@ #ifndef _WIN32 if (rename([source cStringWithEncoding: OF_STRING_ENCODING_NATIVE], [destination cStringWithEncoding: OF_STRING_ENCODING_NATIVE])) #else - if (!MoveFileW([source UTF16String], [destination UTF16String])) + if (_wrename([source UTF16String], [destination UTF16String])) #endif @throw [OFRenameFileFailedException exceptionWithClass: self sourcePath: source destinationPath: destination];