[PATCH] kernel32/tests: Add test of CreateDirectory with long path.

YongHao Hu christopherwuy at gmail.com
Thu Nov 5 00:43:04 CST 2015


Hi,

On 15/11/5 下午12:48, Dmitry Timoshkov wrote:
> YongHao Hu <christopherwuy at 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/d8cc1dccba88a01e3eaacf958f88a24b07bd869b..b5c12faa6a793443eb97fdb512787fb3b3ef82c7:/dlls/msvcp90/ios.c



More information about the wine-devel mailing list