https://git.reactos.org/?p=reactos.git;a=commitdiff;h=dd54cd32cf02254e9fc9e…
commit dd54cd32cf02254e9fc9ef78eb544bd580cd8787
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Thu Feb 16 21:44:37 2023 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Sun Oct 1 20:06:03 2023 +0200
[NTDLL_WINETEST] Enable registry tests for KeyCachedInformation back
---
modules/rostests/winetests/ntdll/reg.c | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
diff --git a/modules/rostests/winetests/ntdll/reg.c
b/modules/rostests/winetests/ntdll/reg.c
index b03cd077dfd..1ee28ac3b34 100644
--- a/modules/rostests/winetests/ntdll/reg.c
+++ b/modules/rostests/winetests/ntdll/reg.c
@@ -1797,23 +1797,18 @@ static void test_NtQueryKey(void)
ok( status == STATUS_SUCCESS, "NtSetValueKey failed: 0x%08x\n", status );
pRtlFreeUnicodeString(&str);
- if (!winetest_interactive)
- skip("ROSTESTS-198: Causes an assert in Cm.\n");
- else
- {
- status = pNtQueryKey(subkey, KeyCachedInformation, &cached_info,
sizeof(cached_info), &len);
- ok(status == STATUS_SUCCESS, "NtQueryKey Failed: 0x%08x\n", status);
+ status = pNtQueryKey(subkey, KeyCachedInformation, &cached_info,
sizeof(cached_info), &len);
+ ok(status == STATUS_SUCCESS, "NtQueryKey Failed: 0x%08x\n", status);
- if (status == STATUS_SUCCESS)
- {
- ok(len == sizeof(cached_info), "got unexpected length %d\n",
len);
- ok(cached_info.SubKeys == 1, "cached_info.SubKeys = %u\n",
cached_info.SubKeys);
- ok(cached_info.MaxNameLen == 24, "cached_info.MaxNameLen = %u\n",
cached_info.MaxNameLen);
- ok(cached_info.Values == 1, "cached_info.Values = %u\n",
cached_info.Values);
- ok(cached_info.MaxValueNameLen == 6, "cached_info.MaxValueNameLen =
%u\n", cached_info.MaxValueNameLen);
- ok(cached_info.MaxValueDataLen == 4, "cached_info.MaxValueDataLen =
%u\n", cached_info.MaxValueDataLen);
- ok(cached_info.NameLength == 22, "cached_info.NameLength = %u\n",
cached_info.NameLength);
- }
+ if (status == STATUS_SUCCESS)
+ {
+ ok(len == sizeof(cached_info), "got unexpected length %d\n", len);
+ ok(cached_info.SubKeys == 1, "cached_info.SubKeys = %u\n",
cached_info.SubKeys);
+ ok(cached_info.MaxNameLen == 24, "cached_info.MaxNameLen = %u\n",
cached_info.MaxNameLen);
+ ok(cached_info.Values == 1, "cached_info.Values = %u\n",
cached_info.Values);
+ ok(cached_info.MaxValueNameLen == 6, "cached_info.MaxValueNameLen =
%u\n", cached_info.MaxValueNameLen);
+ ok(cached_info.MaxValueDataLen == 4, "cached_info.MaxValueDataLen =
%u\n", cached_info.MaxValueDataLen);
+ ok(cached_info.NameLength == 22, "cached_info.NameLength = %u\n",
cached_info.NameLength);
}
status = pNtDeleteKey(subkey2);