crypt32: Avoid crash on NULL pointer in trace.

This commit is contained in:
Alexandre Julliard 2006-04-13 11:44:52 +02:00
parent 7a560493fe
commit ee05e245a4
1 changed files with 2 additions and 2 deletions

View File

@ -323,14 +323,14 @@ BOOL WINAPI CertGetEnhancedKeyUsage(PCCERT_CONTEXT pCertContext, DWORD dwFlags,
DWORD bytesNeeded; DWORD bytesNeeded;
BOOL ret = TRUE; BOOL ret = TRUE;
TRACE("(%p, %08lx, %p, %ld)\n", pCertContext, dwFlags, pUsage, *pcbUsage);
if (!pCertContext || !pcbUsage) if (!pCertContext || !pcbUsage)
{ {
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
return FALSE; return FALSE;
} }
TRACE("(%p, %08lx, %p, %ld)\n", pCertContext, dwFlags, pUsage, *pcbUsage);
if (!(dwFlags & CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG)) if (!(dwFlags & CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG))
{ {
DWORD propSize = 0; DWORD propSize = 0;