crypt32: Fix possible dereference of NULL ptr.

This commit is contained in:
Jeff Latimer 2007-06-24 20:06:49 +10:00 committed by Alexandre Julliard
parent 545c2a95f6
commit 417ae04ed9
1 changed files with 3 additions and 2 deletions

View File

@ -899,6 +899,7 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
}
}
}
if (nameAttr)
ret = CertRDNValueToStrW(nameAttr->dwValueType, &nameAttr->Value,
pszNameString, cchNameString);
if (info)