Juan Lang : crypt32: Reduce valid usages count when removing a valid usage.
Alexandre Julliard
julliard at winehq.org
Fri Oct 5 04:55:58 CDT 2007
Module: wine
Branch: master
Commit: f8e830a253169659a032efd0b1f3729bc56d286f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f8e830a253169659a032efd0b1f3729bc56d286f
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Oct 4 15:28:46 2007 -0700
crypt32: Reduce valid usages count when removing a valid usage.
---
dlls/crypt32/cert.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c
index ce9c2f5..9697ab8 100644
--- a/dlls/crypt32/cert.c
+++ b/dlls/crypt32/cert.c
@@ -2012,6 +2012,7 @@ BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
cbOIDs -= lstrlenA(
validUsages.rgpszUsageIdentifier[j]) + 1 +
sizeof(LPSTR);
+ validUsages.cUsageIdentifier--;
numRemoved++;
}
else
More information about the wine-cvs
mailing list