crypt32: Avoid crash on NULL pointer in trace.
This commit is contained in:
parent
7a560493fe
commit
ee05e245a4
|
@ -323,14 +323,14 @@ BOOL WINAPI CertGetEnhancedKeyUsage(PCCERT_CONTEXT pCertContext, DWORD dwFlags,
|
|||
DWORD bytesNeeded;
|
||||
BOOL ret = TRUE;
|
||||
|
||||
TRACE("(%p, %08lx, %p, %ld)\n", pCertContext, dwFlags, pUsage, *pcbUsage);
|
||||
|
||||
if (!pCertContext || !pcbUsage)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
TRACE("(%p, %08lx, %p, %ld)\n", pCertContext, dwFlags, pUsage, *pcbUsage);
|
||||
|
||||
if (!(dwFlags & CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG))
|
||||
{
|
||||
DWORD propSize = 0;
|
||||
|
|
Loading…
Reference in New Issue