[PATCH 2/3] msvcp110: Add tr2_sys__Symlink implementation and test.

YongHao Hu christopherwuy at gmail.com
Fri Feb 5 03:30:37 CST 2016


Hi, Piotr.
Sorry for the late reply.

On 16/1/12 下午9:28, Piotr Caban wrote:
> On 01/11/16 14:56, YongHao Hu wrote:
>> +    delete_flag = 1;
>> +    for(i=0; i<sizeof(tests)/sizeof(tests[0]); i++) {
>> +        errno = 0xdeadbeef;
>> +        SetLastError(0xdeadbeef);
>> +        ret = p_tr2_sys__Symlink(tests[i].existing_path, 
>> tests[i].new_path);
>> +        if(ret==ERROR_PRIVILEGE_NOT_HELD || 
>> ret==ERROR_INVALID_FUNCTION) {
>> +            delete_flag = 0;
>> +            tests[i].last_error = ret;
>> +            win_skip("Privilege not held or symbolic link not 
>> supported, skipping symbolic link tests.\n");
> I think it would be nicer if the tests are really skipped in this 
> case. Please detect such case and return from the function instead of 
> adding workarounds in the code for it.
>
Could you explain a bit more details?
Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20160205/eb97fd12/attachment.html>


More information about the wine-devel mailing list