Hi, On 15/11/5 下午12:48, Dmitry Timoshkov wrote:
YongHao Hu <christopherwuy(a)gmail.com> wrote:
On Windows, CreateDirectoryA fail when the path's size longer than MAX_PATH-12(248) while Wine's implementation succeed.[1]
[1]:https://bugs.winehq.org/show_bug.cgi?id=39552 Is there an application that depends on this very strange implementation detail? Nope. I didn't find an application that depends on this implementation details. But I found this detail because of the implementation of tr2::sys::Open_dir[1]. I think if it is impossible to create a directory whose size max than 248, the patch can be improved. Besides, the messages in the ok() calls sometimes are wrong. Could you explain a bit more detail? Also, you shouldn't test against TRUE/FALSE directly.
Do you have any good idea? Thank you. [1]: http://source.winehq.org/git/wine.git/blobdiff/d8cc1dccba88a01e3eaacf958f88a...