Commit 0274f353 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

advapi32: CryptSetKeyParam() should accept NULL pbData.

At least CryptSetKeyParam(KP_X) should accept NULL pbData. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru>
parent 4ff40a67
......@@ -1979,7 +1979,7 @@ BOOL WINAPI CryptSetKeyParam (HCRYPTKEY hKey, DWORD dwParam, const BYTE *pbData,
if (!(key = key_from_handle(hKey)))
return FALSE;
if (!pbData || !key->pProvider || key->pProvider->dwMagic != MAGIC_CRYPTPROV)
if (!key->pProvider || key->pProvider->dwMagic != MAGIC_CRYPTPROV)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment