Module: wine Branch: master Commit: e887b3947271e04a02728bfd38a3da11b734cd07 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e887b3947271e04a02728bfd38...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jan 29 22:08:54 2009 +0100
ntdll/tests: Add a couple of status values seen on Win2K3.
---
dlls/ntdll/tests/reg.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c index 0e25c06..25d2145 100644 --- a/dlls/ntdll/tests/reg.c +++ b/dlls/ntdll/tests/reg.c @@ -373,7 +373,8 @@ static void test_NtCreateKey(void)
/* All NULL */ status = pNtCreateKey(NULL, 0, NULL, 0, 0, 0, 0); - ok(status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got: 0x%08x\n", status); + ok(status == STATUS_ACCESS_VIOLATION || status == STATUS_INVALID_PARAMETER, + "Expected STATUS_ACCESS_VIOLATION or STATUS_INVALID_PARAMETER, got: 0x%08x\n", status);
/* Only the key */ status = pNtCreateKey(&key, 0, NULL, 0, 0, 0, 0); @@ -382,7 +383,8 @@ static void test_NtCreateKey(void)
/* Only accessmask */ status = pNtCreateKey(NULL, am, NULL, 0, 0, 0, 0); - ok(status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got: 0x%08x\n", status); + ok(status == STATUS_ACCESS_VIOLATION || status == STATUS_INVALID_PARAMETER, + "Expected STATUS_ACCESS_VIOLATION or STATUS_INVALID_PARAMETER, got: 0x%08x\n", status);
/* Key and accessmask */ status = pNtCreateKey(&key, am, NULL, 0, 0, 0, 0);