https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8ae8083378546fc7d907e…
commit 8ae8083378546fc7d907e489aeebddbe3c8d9399
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Mar 12 17:14:06 2020 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat Mar 28 20:43:03 2020 +0100
[ADVAPI32][PSDK] CryptReleaseContext(): dwFlags parameter is DWORD, only
Import
https://source.winehq.org/git/wine.git/commit/9cc8b501eea8dc3bd589ab3e5df3b…
---
dll/win32/advapi32/wine/crypt.c | 8 ++------
sdk/include/psdk/wincrypt.h | 4 ----
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/dll/win32/advapi32/wine/crypt.c b/dll/win32/advapi32/wine/crypt.c
index 25cf65e8371..a7e130c86c9 100644
--- a/dll/win32/advapi32/wine/crypt.c
+++ b/dll/win32/advapi32/wine/crypt.c
@@ -639,22 +639,18 @@ BOOL WINAPI CryptContextAddRef (HCRYPTPROV hProv, DWORD
*pdwReserved, DWORD dwFl
*
* PARAMS
* hProv [I] Handle of a CSP.
- * dwFlags [I] Reserved for future use and must be NULL.
+ * dwFlags [I] Reserved for future use and must be 0.
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
-#ifdef __REACTOS__
BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, DWORD dwFlags)
-#else
-BOOL WINAPI CryptReleaseContext (HCRYPTPROV hProv, ULONG_PTR dwFlags)
-#endif
{
PCRYPTPROV pProv = (PCRYPTPROV)hProv;
BOOL ret = TRUE;
- TRACE("(0x%lx, %08lx)\n", hProv, dwFlags);
+ TRACE("(0x%lx, %08x)\n", hProv, dwFlags);
if (!pProv)
{
diff --git a/sdk/include/psdk/wincrypt.h b/sdk/include/psdk/wincrypt.h
index f0c2f5f2535..930a07de1dc 100644
--- a/sdk/include/psdk/wincrypt.h
+++ b/sdk/include/psdk/wincrypt.h
@@ -4395,11 +4395,7 @@ CryptImportKey(
_In_ DWORD dwFlags,
_Out_ HCRYPTKEY *phKey);
-#if (NTDDI_VERSION >= NTDDI_WINXP)
WINADVAPI BOOL WINAPI CryptReleaseContext(_In_ HCRYPTPROV, _In_ DWORD);
-#else
-WINADVAPI BOOL WINAPI CryptReleaseContext(_In_ HCRYPTPROV, _In_ ULONG_PTR);
-#endif
WINADVAPI
BOOL