[PATCH 1/1] ntdll: Do not open directory file when setting the same directory path.

Dmitry Timoshkov dmitry at baikal.ru
Thu Jun 16 02:17:30 CDT 2022


Paul Gofman <wine at gitlab.winehq.org> wrote:

> +    if (curdir->DosPath.Length == (compare_size + 1) * sizeof(WCHAR)
> +        && !memcmp( curdir->DosPath.Buffer, ptr, compare_size * sizeof(WCHAR) ))
> +    {
> +        TRACE( "dir %s is the same as current.\n", debugstr_us(dir) );
> +        nts = STATUS_SUCCESS;
> +        goto out;
> +    }

Comparison probably should be case insensitive.

-- 
Dmitry.



More information about the wine-devel mailing list