[crypt32] Fix TRACE when using a numeric identifier
Paul Vriens
Paul.Vriens at xs4all.nl
Wed Sep 6 03:40:56 CDT 2006
Hi,
while adding some stuff to the registration of wintrust.dll, I had to add some
CryptRegisterOIDFunction calls. When tracing is on for crypt we crashed.
Don't know if this is the best solution, but it fixes it for me.
Changelog
Fix TRACE when using a numeric identifier
Cheers,
Paul.
---
dlls/crypt32/oid.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c
index c1d3bc6..6736e36 100644
--- a/dlls/crypt32/oid.c
+++ b/dlls/crypt32/oid.c
@@ -420,8 +420,12 @@ BOOL WINAPI CryptRegisterOIDFunction(DWO
HKEY hKey;
LPSTR szKey;
- TRACE("(%lx, %s, %s, %s, %s)\n", dwEncodingType, pszFuncName, pszOID,
- debugstr_w(pwszDll), pszOverrideFuncName);
+ if (!HIWORD(pszOID))
+ TRACE("(%lx, %s, #%d, %s, %s)\n", dwEncodingType, pszFuncName, LOWORD(pszOID),
+ debugstr_w(pwszDll), pszOverrideFuncName);
+ else
+ TRACE("(%lx, %s, %s, %s, %s)\n", dwEncodingType, pszFuncName, pszOID,
+ debugstr_w(pwszDll), pszOverrideFuncName);
/* This only registers functions for encoding certs, not messages */
if (!GET_CERT_ENCODING_TYPE(dwEncodingType))
--
1.4.2
More information about the wine-patches
mailing list