From 1ee781266d674e64bbe572dfe8d29f6e49bf4c25 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 17 Jan 2017 10:49:27 +0100 Subject: [PATCH] bcrypt/tests: Relax the AES object length test. Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- dlls/bcrypt/tests/bcrypt.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/dlls/bcrypt/tests/bcrypt.c b/dlls/bcrypt/tests/bcrypt.c index 3e413357cd1..422f2cfd340 100644 --- a/dlls/bcrypt/tests/bcrypt.c +++ b/dlls/bcrypt/tests/bcrypt.c @@ -789,22 +789,8 @@ todo_wine { len = size = 0; ret = pBCryptGetProperty(alg, BCRYPT_OBJECT_LENGTH, (UCHAR *)&len, sizeof(len), &size, 0); ok(ret == STATUS_SUCCESS, "got %08x\n", ret); - if (sizeof(void *) == 4) - { - ok(len == 618 /* >= Win 8 */ - || broken(len == 610) /* Win 7 */ - || broken(len == 582) /* < Win 7 */, - "got %u\n", len); - ok(size == sizeof(len), "got %u\n", size); - } - else - { - ok(len == 654 /* >= Win 8 */ - || broken(len == 622) /* Win 7 */ - || broken(len == 598) /* < Win 7 */, - "got %u\n", len); - ok(size == sizeof(len), "got %u\n", size); - } + ok(len, "expected non-zero len\n"); + ok(size == sizeof(len), "got %u\n", size); len = size = 0; ret = pBCryptGetProperty(alg, BCRYPT_BLOCK_LENGTH, (UCHAR *)&len, sizeof(len), &size, 0);