[PATCH 3/5] dssenh: Implement CPAcquireContext and CPReleaseContext.

Dmitry Timoshkov dmitry at baikal.ru
Wed Oct 7 08:35:03 CDT 2020


Hans Leidekker <hans at codeweavers.com> wrote:

> +static struct container *read_key_container( const char *name, DWORD flags )
> +{
> +    DWORD protect_flags = (flags & CRYPT_MACHINE_KEYSET) ? CRYPTPROTECT_LOCAL_MACHINE : 0;
> +    struct container *ret;
> +    HKEY hkey;
> +
> +    if (!open_container_regkey( name, flags, KEY_READ, &hkey )) return NULL;
> +
> +    if ((ret = create_key_container( name, flags )))
> +    {
> +        ret->exch_key = read_key( hkey, AT_SIGNATURE, protect_flags );
> +        ret->sign_key = read_key( hkey, AT_KEYEXCHANGE, protect_flags );
> +    }

Seems to be a typo.

-- 
Dmitry.



More information about the wine-devel mailing list