Francois Gouget : crypt32: Fix the CryptReleaseContext() prototype.

Alexandre Julliard julliard at
Wed Aug 1 05:16:43 CDT 2007

Module: wine
Branch: master
Commit: a33993bcbd960a4024a81a1009ae6c6c5b5a4019

Author: Francois Gouget <fgouget at>
Date:   Tue Jul 31 19:02:53 2007 +0200

crypt32: Fix the CryptReleaseContext() prototype.


 dlls/advapi32/crypt.c |    4 ++--
 include/wincrypt.h    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c
index a7273b9..60131bb 100644
--- a/dlls/advapi32/crypt.c
+++ b/dlls/advapi32/crypt.c
@@ -568,12 +568,12 @@ BOOL WINAPI CryptContextAddRef (HCRYPTPROV hProv, DWORD *pdwReserved, DWORD dwFl
  *  Success: TRUE
  *  Failure: FALSE
-BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, DWORD dwFlags)
+BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, ULONG_PTR dwFlags)
 	BOOL ret = TRUE;
-	TRACE("(0x%lx, %08x)\n", hProv, dwFlags);
+	TRACE("(0x%lx, %08lx)\n", hProv, dwFlags);
 	if (!pProv)
diff --git a/include/wincrypt.h b/include/wincrypt.h
index 46bc094..8700f56 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -3383,7 +3383,7 @@ BOOL WINAPI CryptHashData (HCRYPTHASH hHash, CONST BYTE *pbData, DWORD dwDataLen
 BOOL WINAPI CryptHashSessionKey (HCRYPTHASH hHash, HCRYPTKEY hKey, DWORD dwFlags);
 BOOL WINAPI CryptImportKey (HCRYPTPROV hProv, CONST BYTE *pbData, DWORD dwDataLen,
 		HCRYPTKEY hPubKey, DWORD dwFlags, HCRYPTKEY *phKey);
-BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, DWORD dwFlags);
+BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, ULONG_PTR dwFlags);
 BOOL WINAPI CryptSetHashParam (HCRYPTHASH hHash, DWORD dwParam, CONST BYTE *pbData, DWORD dwFlags);
 BOOL WINAPI CryptSetKeyParam (HCRYPTKEY hKey, DWORD dwParam, CONST BYTE *pbData, DWORD dwFlags);
 BOOL WINAPI CryptSetProviderA (LPCSTR pszProvName, DWORD dwProvType);

More information about the wine-cvs mailing list