André Hentschel : rsaenh/tests: Adjust length value to pass on Win 10.
Module: wine Branch: master Commit: 86b1e74f5c2aabc5d4ed004737d9c2c45af9e3b9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=86b1e74f5c2aabc5d4ed004737... Author: André Hentschel <nerv(a)dawncrow.de> Date: Thu Oct 1 00:04:20 2015 +0200 rsaenh/tests: Adjust length value to pass on Win 10. Signed-off-by: André Hentschel <nerv(a)dawncrow.de> --- dlls/rsaenh/tests/rsaenh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index da74ffb..439d253 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -1971,8 +1971,7 @@ static void test_import_private(void) * actual buffer. The private exponent can be omitted, its length is * inferred from the passed-in length parameter. */ - dwLen = sizeof(BLOBHEADER) + sizeof(RSAPUBKEY) + - rsaPubKey->bitlen / 8 + 5 * rsaPubKey->bitlen / 16; + dwLen = sizeof(BLOBHEADER) + sizeof(RSAPUBKEY) + rsaPubKey->bitlen / 2; for (; dwLen < sizeof(abPlainPrivateKey); dwLen++) { result = CryptImportKey(hProv, abPlainPrivateKey, dwLen, 0, 0, &hKeyExchangeKey);
participants (1)
-
Alexandre Julliard