crypt32: Fix an uninitialized variable compiler warning.

This commit is contained in:
Alexandre Julliard 2007-06-26 21:30:41 +02:00
parent 7a7f416ace
commit df3ccaba24

View file

@ -876,8 +876,6 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
sizeof(simpleAttributeOIDs[0]); i++) sizeof(simpleAttributeOIDs[0]); i++)
nameAttr = CertFindRDNAttr(simpleAttributeOIDs[i], info); nameAttr = CertFindRDNAttr(simpleAttributeOIDs[i], info);
} }
else
ret = 0;
if (!nameAttr) if (!nameAttr)
{ {
PCERT_EXTENSION ext = CertFindExtension(altNameOID, PCERT_EXTENSION ext = CertFindExtension(altNameOID,
@ -895,13 +893,14 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
* Failing that, look for the first attribute. * Failing that, look for the first attribute.
*/ */
FIXME("CERT_NAME_SIMPLE_DISPLAY_TYPE: stub\n"); FIXME("CERT_NAME_SIMPLE_DISPLAY_TYPE: stub\n");
ret = 0;
} }
} }
} }
if (nameAttr) if (nameAttr)
ret = CertRDNValueToStrW(nameAttr->dwValueType, &nameAttr->Value, ret = CertRDNValueToStrW(nameAttr->dwValueType, &nameAttr->Value,
pszNameString, cchNameString); pszNameString, cchNameString);
else
ret = 0;
if (info) if (info)
LocalFree(info); LocalFree(info);
break; break;