rsaenh/tests: Adjust length value to pass on Win 10 (try 2) (resend)

André Hentschel nerv at dawncrow.de
Wed Sep 30 17:04:20 CDT 2015


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---

If you look at the formular a bit closer you'll notice I change the factor from 3.5 (which looks strange enough) to 4
try 2: And if I look a bit closer I can shorten it even more :D
resending because of singed-off-by

 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);
-- 
1.9.1




More information about the wine-patches mailing list