[PATCH v3 3/5] advapi32: Fix CryptReleaseContext() LastError on NULL provider.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Tue Mar 17 08:48:41 CDT 2020


Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
 dlls/advapi32/crypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c
index f49a497..c4f6988 100644
--- a/dlls/advapi32/crypt.c
+++ b/dlls/advapi32/crypt.c
@@ -662,7 +662,7 @@ BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, DWORD dwFlags)
 
 	if (!pProv)
 	{
-		SetLastError(NTE_BAD_UID);
+		SetLastError(ERROR_INVALID_PARAMETER);
 		return FALSE;
 	}
 
-- 
2.10.0.windows.1




More information about the wine-devel mailing list