Differences From Artifact [9af0a75ec0]:
- File src/OFFile.m — part of check-in [b8ce2359f3] at 2013-01-12 20:53:54 on branch trunk — Clean up the feature #ifdef mess. (user: js, size: 18505) [annotate] [blame] [check-ins using]
To Artifact [214e7cf8ea]:
- File
src/OFFile.m
— part of check-in
[55d99d15e3]
at
2013-01-13 01:19:49
on branch trunk
— OFFile: Use _wrename() instead of MoveFileW().
Unlike MoveFileW(), _wrename() sets errno. (user: js, size: 18503) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
594 595 596 597 598 599 600 | nil]; } #ifndef _WIN32 if (rename([source cStringWithEncoding: OF_STRING_ENCODING_NATIVE], [destination cStringWithEncoding: OF_STRING_ENCODING_NATIVE])) #else | | | 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 | nil]; } #ifndef _WIN32 if (rename([source cStringWithEncoding: OF_STRING_ENCODING_NATIVE], [destination cStringWithEncoding: OF_STRING_ENCODING_NATIVE])) #else if (_wrename([source UTF16String], [destination UTF16String])) #endif @throw [OFRenameFileFailedException exceptionWithClass: self sourcePath: source destinationPath: destination]; objc_autoreleasePoolPop(pool); |
︙ | ︙ |