[PATCH] bcrypt: Add stub for BCryptOpenAlgorithmProvider.

Dmitry Timoshkov dmitry at baikal.ru
Tue Apr 29 19:47:56 CDT 2014


Alex Henrie <alexhenrie24 at gmail.com> wrote:

> +@ stdcall BCryptOpenAlgorithmProvider(ptr ptr ptr long)

It should be (ptr wstr wstr long)

> +NTSTATUS WINAPI BCryptOpenAlgorithmProvider(BCRYPT_ALG_HANDLE *phAlgorithm, LPCWSTR pszAlgId,
> +                                            LPCWSTR pszImplementation, DWORD dwFlags)
> +{
> +    FIXME("%p, %s, %s, %08x - stub\n", phAlgorithm, wine_dbgstr_w(pszAlgId), wine_dbgstr_w(pszImplementation), dwFlags);
> +
> +    *phAlgorithm = NULL;
> +
> +    return STATUS_NOT_IMPLEMENTED;
> +}

Probably there should be a test for NULL before writing to *phAlgorithm.

Also please avoid using hungarian notation for variable naming in Wine.

-- 
Dmitry.



More information about the wine-devel mailing list