James Hawkins : advapi32: Fix a few test failures in Vista.
Alexandre Julliard
julliard at winehq.org
Wed Sep 3 07:43:29 CDT 2008
Module: wine
Branch: master
Commit: 83b21a6d5bcd4f95f3e32715cf7e3a86e43edd39
URL: http://source.winehq.org/git/wine.git/?a=commit;h=83b21a6d5bcd4f95f3e32715cf7e3a86e43edd39
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Tue Sep 2 00:46:10 2008 -0500
advapi32: Fix a few test failures in Vista.
---
dlls/advapi32/tests/crypt_lmhash.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/dlls/advapi32/tests/crypt_lmhash.c b/dlls/advapi32/tests/crypt_lmhash.c
index 9f2b24e..63ab2c0 100644
--- a/dlls/advapi32/tests/crypt_lmhash.c
+++ b/dlls/advapi32/tests/crypt_lmhash.c
@@ -348,20 +348,24 @@ static void test_SystemFunction005(void)
out.Length = 0;
out.MaximumLength = 0;
r = pSystemFunction005(&out, &key, &res);
- ok(r == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08x\n", r);
+ ok(r == STATUS_SUCCESS ||
+ r == STATUS_INVALID_PARAMETER_1, /* Vista */
+ "Expected STATUS_SUCCESS or STATUS_INVALID_PARAMETER_1, got %08x\n", r);
ok(res.Length == in.Length, "Length wrong\n");
ok(!memcmp(res.Buffer, in.Buffer, in.Length), "data wrong\n");
res.MaximumLength = 0;
r = pSystemFunction005(&out, &key, &res);
- ok(r == STATUS_BUFFER_TOO_SMALL,
- "Expected STATUS_BUFFER_TOO_SMALL, got %08x\n", r);
+ ok(r == STATUS_BUFFER_TOO_SMALL ||
+ r == STATUS_INVALID_PARAMETER_1, /* Vista */
+ "Expected STATUS_BUFFER_TOO_SMALL or STATUS_INVALID_PARAMETER_1, got %08x\n", r);
key.Length = 1;
r = pSystemFunction005(&out, &key, &res);
- ok(r == STATUS_UNKNOWN_REVISION,
- "Expected STATUS_UNKNOWN_REVISION, got %08x\n", r);
+ ok(r == STATUS_UNKNOWN_REVISION ||
+ r == STATUS_INVALID_PARAMETER_1, /* Vista */
+ "Expected STATUS_UNKNOWN_REVISION or STATUS_INVALID_PARAMETER_1, got %08x\n", r);
key.Length = 0;
r = pSystemFunction005(&out, &key, &res);
More information about the wine-cvs
mailing list