From 51acdc6b271f499bdfad06bd06b917638be22660 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 23 Sep 2013 10:05:02 +0200 Subject: [PATCH] advapi32/tests: Mark a test result as broken. --- dlls/advapi32/tests/crypt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/advapi32/tests/crypt.c b/dlls/advapi32/tests/crypt.c index dc10cce097f..89a0e27fefe 100644 --- a/dlls/advapi32/tests/crypt.c +++ b/dlls/advapi32/tests/crypt.c @@ -1144,7 +1144,7 @@ static void test_container_sd(void) { HCRYPTPROV prov; SECURITY_DESCRIPTOR *sd; - DWORD len; + DWORD len, err; BOOL ret; ret = CryptAcquireContextA(&prov, "winetest", "Microsoft Enhanced Cryptographic Provider v1.0", @@ -1154,8 +1154,9 @@ static void test_container_sd(void) len = 0; SetLastError(0xdeadbeef); ret = CryptGetProvParam(prov, PP_KEYSET_SEC_DESCR, NULL, &len, OWNER_SECURITY_INFORMATION); - ok(ret, "got %u\n", GetLastError()); - ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %u\n", GetLastError()); + err = GetLastError(); + ok(ret, "got %u\n", err); + ok(err == ERROR_INSUFFICIENT_BUFFER || broken(err == ERROR_INVALID_PARAMETER), "got %u\n", err); ok(len, "expected len > 0\n"); sd = HeapAlloc(GetProcessHeap(), 0, len);