From 46ead27165f5ff1feec840a9b8783d7a1052ed14 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Wed, 17 Oct 2007 09:33:30 -0700 Subject: [PATCH] crypt32: Don't abort early if encoding type is 0 for CryptRegisterOIDFunction/CryptUnregisterOIDFunction. --- dlls/crypt32/oid.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c index c33d7aa521b..f4d254d2b5b 100644 --- a/dlls/crypt32/oid.c +++ b/dlls/crypt32/oid.c @@ -602,10 +602,6 @@ BOOL WINAPI CryptRegisterOIDFunction(DWORD dwEncodingType, LPCSTR pszFuncName, TRACE("(%x, %s, %s, %s, %s)\n", dwEncodingType, pszFuncName, debugstr_a(pszOID), debugstr_w(pwszDll), pszOverrideFuncName); - /* This only registers functions for encoding certs, not messages */ - if (!GET_CERT_ENCODING_TYPE(dwEncodingType)) - return TRUE; - /* Native does nothing pwszDll is NULL */ if (!pwszDll) return TRUE; @@ -666,9 +662,6 @@ BOOL WINAPI CryptUnregisterOIDFunction(DWORD dwEncodingType, LPCSTR pszFuncName, TRACE("%x %s %s\n", dwEncodingType, debugstr_a(pszFuncName), debugstr_a(pszOID)); - if (!GET_CERT_ENCODING_TYPE(dwEncodingType)) - return TRUE; - if (!pszFuncName || !pszOID) { SetLastError(ERROR_INVALID_PARAMETER);