mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:21:14 +00:00
crypt32: Fix an uninitialized variable compiler warning.
This commit is contained in:
parent
7a7f416ace
commit
df3ccaba24
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue