https://git.reactos.org/?p=reactos.git;a=commitdiff;h=96b847fd040da8f65e89c0...
commit 96b847fd040da8f65e89c0e12e913b54aecbaeaf Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Sun Jun 26 12:01:57 2022 +0200 Commit: Timo Kreuzer timo.kreuzer@reactos.org CommitDate: Sun Jun 26 16:09:52 2022 +0200
[NTDLL_APITEST] Fix RtlGetNtProductType test --- modules/rostests/apitests/ntdll/RtlGetNtProductType.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/rostests/apitests/ntdll/RtlGetNtProductType.c b/modules/rostests/apitests/ntdll/RtlGetNtProductType.c index c7cc6b0eb9f..03ac8238e07 100644 --- a/modules/rostests/apitests/ntdll/RtlGetNtProductType.c +++ b/modules/rostests/apitests/ntdll/RtlGetNtProductType.c @@ -97,7 +97,7 @@ ChangeNtProductType(DWORD NtProductType) Result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SYSTEM\CurrentControlSet\Control\ProductOptions", 0, - KEY_QUERY_VALUE, + KEY_ALL_ACCESS, &Key); if (Result != ERROR_SUCCESS) { @@ -120,7 +120,7 @@ ChangeNtProductType(DWORD NtProductType) }
RegCloseKey(Key); - return FALSE; + return TRUE; }
START_TEST(RtlGetNtProductType) @@ -153,15 +153,15 @@ START_TEST(RtlGetNtProductType) /* Change product type in the registry */ ok_char(ChangeNtProductType(NtProductWinNt), TRUE); ok_char(RtlGetNtProductType(&ProductType2), TRUE); - ok_long(ProductType2, NtProductWinNt); + ok_long(ProductType2, ProductType);
ok_char(ChangeNtProductType(NtProductLanManNt), TRUE); ok_char(RtlGetNtProductType(&ProductType2), TRUE); - ok_long(ProductType2, NtProductLanManNt); + ok_long(ProductType2, ProductType);
ok_char(ChangeNtProductType(NtProductServer), TRUE); ok_char(RtlGetNtProductType(&ProductType2), TRUE); - ok_long(ProductType2, NtProductServer); + ok_long(ProductType2, ProductType);
ok_char(ChangeNtProductType(ProductType), TRUE); }