advapi32: Fix CryptReleaseContext() last error on NULL provider.

Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Serge Gautherie 2020-03-17 14:48:41 +01:00 committed by Alexandre Julliard
parent 62df03af96
commit 8b9e3dae4f
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, DWORD dwFlags)
if (!pProv)
{
SetLastError(NTE_BAD_UID);
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}