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.
This commit is contained in:
parent
33ca67dcab
commit
b0e8143db6
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue