crypt32: Fix a silly variable name.
This commit is contained in:
parent
481864d5e4
commit
daa26ebd5a
|
@ -1923,14 +1923,14 @@ BOOL WINAPI CertRemoveEnhancedKeyUsageIdentifier(PCCERT_CONTEXT pCertContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
|
BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
|
||||||
int *cNumOIDSs, LPSTR *rghOIDs, DWORD *pcbOIDs)
|
int *cNumOIDs, LPSTR *rghOIDs, DWORD *pcbOIDs)
|
||||||
{
|
{
|
||||||
BOOL ret = TRUE;
|
BOOL ret = TRUE;
|
||||||
DWORD i, cbOIDs = 0;
|
DWORD i, cbOIDs = 0;
|
||||||
BOOL allUsagesValid = TRUE;
|
BOOL allUsagesValid = TRUE;
|
||||||
CERT_ENHKEY_USAGE validUsages = { 0, NULL };
|
CERT_ENHKEY_USAGE validUsages = { 0, NULL };
|
||||||
|
|
||||||
TRACE("(%d, %p, %p, %p, %d)\n", cCerts, *rghCerts, cNumOIDSs,
|
TRACE("(%d, %p, %p, %p, %d)\n", cCerts, *rghCerts, cNumOIDs,
|
||||||
rghOIDs, *pcbOIDs);
|
rghOIDs, *pcbOIDs);
|
||||||
|
|
||||||
for (i = 0; ret && i < cCerts; i++)
|
for (i = 0; ret && i < cCerts; i++)
|
||||||
|
@ -2032,7 +2032,7 @@ BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
|
||||||
{
|
{
|
||||||
if (allUsagesValid)
|
if (allUsagesValid)
|
||||||
{
|
{
|
||||||
*cNumOIDSs = -1;
|
*cNumOIDs = -1;
|
||||||
*pcbOIDs = 0;
|
*pcbOIDs = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2049,7 +2049,7 @@ BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
|
||||||
validUsages.cUsageIdentifier * sizeof(LPSTR));
|
validUsages.cUsageIdentifier * sizeof(LPSTR));
|
||||||
|
|
||||||
*pcbOIDs = cbOIDs;
|
*pcbOIDs = cbOIDs;
|
||||||
*cNumOIDSs = validUsages.cUsageIdentifier;
|
*cNumOIDs = validUsages.cUsageIdentifier;
|
||||||
for (i = 0; i < validUsages.cUsageIdentifier; i++)
|
for (i = 0; i < validUsages.cUsageIdentifier; i++)
|
||||||
{
|
{
|
||||||
rghOIDs[i] = nextOID;
|
rghOIDs[i] = nextOID;
|
||||||
|
|
Loading…
Reference in New Issue