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:
Rob Shearman 2008-08-17 18:25:37 +01:00 committed by Alexandre Julliard
parent 33ca67dcab
commit b0e8143db6

View file

@ -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);
}
}
}