Commit b0e8143d authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

cryptnet: Fix mismatch between sizeof and countof quantities in…

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.
parent 33ca67dc
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment