[PATCH 1/2] bcrypt/tests: Test return on invalid flag passed to BCryptCreateHash.

Brendan McGrath brendan at redmandi.com
Tue Mar 5 02:52:10 CST 2019


Signed-off-by: Brendan McGrath <brendan at redmandi.com>
---
 dlls/bcrypt/tests/bcrypt.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/bcrypt/tests/bcrypt.c b/dlls/bcrypt/tests/bcrypt.c
index 5c1a9dc8340..92b5a30e9fd 100644
--- a/dlls/bcrypt/tests/bcrypt.c
+++ b/dlls/bcrypt/tests/bcrypt.c
@@ -247,6 +247,12 @@ static void test_hash(const struct hash_test *test)
 
     hash = NULL;
     len = sizeof(buf);
+
+    /* test return on invalid flag */
+    ret = pBCryptCreateHash(alg, &hash, buf, len, NULL, 0, 1);
+    todo_wine
+    ok(ret == STATUS_INVALID_PARAMETER, "got %08x\n", ret);
+
     ret = pBCryptCreateHash(alg, &hash, buf, len, NULL, 0, 0);
     ok(ret == STATUS_SUCCESS, "got %08x\n", ret);
     ok(hash != NULL, "hash not set\n");
-- 
2.17.1




More information about the wine-devel mailing list