crypt32: Reduce valid usages count when removing a valid usage.

This commit is contained in:
Juan Lang 2007-10-04 15:28:46 -07:00 committed by Alexandre Julliard
parent b5531163a9
commit f8e830a253
1 changed files with 1 additions and 0 deletions

View File

@ -2012,6 +2012,7 @@ BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
cbOIDs -= lstrlenA(
validUsages.rgpszUsageIdentifier[j]) + 1 +
sizeof(LPSTR);
validUsages.cUsageIdentifier--;
numRemoved++;
}
else