[PATCH 5/6]: msvcp110: Add tr2_sys__Lstat implementation and test.(resend)

Piotr Caban piotr.caban at gmail.com
Fri Jul 3 05:51:23 CDT 2015


On 07/03/15 06:00, YongHaoHu wrote:
> +/* ?_Lstat at sys@tr2 at std@@YA?AW4file_type at 123@PBDAAH at Z */
> +/* ?_Lstat at sys@tr2 at std@@YA?AW4file_type at 123@PEBDAEAH at Z */
> +file_type tr2_sys__Lstat(char const* path, int *err_code)
> +{
> +    DWORD attr;
> +    TRACE("(%s %p)\n", debugstr_a(path), err_code);
> +    if(!path) {
> +        *err_code = ERROR_INVALID_PARAMETER;
> +        return status_unknown;
> +    }
> +
> +    attr = GetFileAttributesA(path);
> +    if(attr == INVALID_FILE_ATTRIBUTES)
> +        return stat_set_error(err_code);
> +    if(attr & FILE_ATTRIBUTE_REPARSE_POINT)
> +        FIXME("reparse point is not supported yet\n");
> +
> +    *err_code = ERROR_SUCCESS;
> +    return (attr & FILE_ATTRIBUTE_DIRECTORY)?directory_file:regular_file;
> +}
What's the reason for not calling tr2_sys__Stat function here?

Thanks,
Piotr



More information about the wine-devel mailing list