Rob Shearman : cryptnet: Fix mismatch between sizeof and countof quantities in CRYPT_GetUrlFromCertificateCRLDistPoint .
Alexandre Julliard
julliard at winehq.org
Mon Aug 18 10:47:02 CDT 2008
Module: wine
Branch: master
Commit: b0e8143db64de479f440c82c14330f76829aaec8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b0e8143db64de479f440c82c14330f76829aaec8
Author: Rob Shearman <robertshearman at gmail.com>
Date: Sun Aug 17 18:25:37 2008 +0100
cryptnet: Fix mismatch between sizeof and countof quantities in CRYPT_GetUrlFromCertificateCRLDistPoint.
nextUrl is of type "WCHAR *" so don't multiply the length by
"sizeof(WCHAR)" when incrementing the pointer.
---
dlls/cryptnet/cryptnet_main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c
index 5bf1afe..ffd4d64 100644
--- a/dlls/cryptnet/cryptnet_main.c
+++ b/dlls/cryptnet/cryptnet_main.c
@@ -219,8 +219,7 @@ static BOOL WINAPI CRYPT_GetUrlFromCertificateCRLDistPoint(LPCSTR pszUrlOid,
pUrlArray->rgwszUrl[pUrlArray->cUrl++] =
nextUrl;
nextUrl +=
- (lstrlenW(name->rgAltEntry[j].u.pwszURL) + 1)
- * sizeof(WCHAR);
+ (lstrlenW(name->rgAltEntry[j].u.pwszURL) + 1);
}
}
}
More information about the wine-cvs
mailing list