=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: rsaenh/tests: Adjust length value to pass on Win 10.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 2 09:21:48 CDT 2015


Module: wine
Branch: master
Commit: 86b1e74f5c2aabc5d4ed004737d9c2c45af9e3b9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=86b1e74f5c2aabc5d4ed004737d9c2c45af9e3b9

Author: André Hentschel <nerv at 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 at 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);




More information about the wine-cvs mailing list