Huw Davies : crypt32/tests: Win 10 accepts carriage returns within a base64 four character block.

Alexandre Julliard julliard at winehq.org
Fri Aug 26 10:18:12 CDT 2016


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Aug 26 15:03:00 2016 +0100

crypt32/tests: Win 10 accepts carriage returns within a base64 four character block.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/crypt32/tests/base64.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/crypt32/tests/base64.c b/dlls/crypt32/tests/base64.c
index 335b9b7..48494b5 100644
--- a/dlls/crypt32/tests/base64.c
+++ b/dlls/crypt32/tests/base64.c
@@ -306,9 +306,6 @@ struct BadString
 };
 
 static const struct BadString badStrings[] = {
- { "A\r\nA\r\n=\r\n=\r\n", CRYPT_STRING_BASE64 },
- { "AA\r\n=\r\n=\r\n", CRYPT_STRING_BASE64 },
- { "AA=\r\n=\r\n", CRYPT_STRING_BASE64 },
  { "-----BEGIN X509 CRL-----\r\nAA==\r\n", CRYPT_STRING_BASE64X509CRLHEADER },
 };
 
@@ -340,7 +337,7 @@ static void testStringToBinaryA(void)
         ret = pCryptStringToBinaryA(badStrings[i].str, 0, badStrings[i].format,
          NULL, &bufLen, NULL, NULL);
         ok(!ret && GetLastError() == ERROR_INVALID_DATA,
-         "Expected ERROR_INVALID_DATA, got ret=%d le=%u\n", ret, GetLastError());
+           "%d: Expected ERROR_INVALID_DATA, got ret=%d le=%u\n", i, ret, GetLastError());
     }
     /* Good strings */
     for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++)




More information about the wine-cvs mailing list