https://git.reactos.org/?p=reactos.git;a=commitdiff;h=be56475ccf47c5b320eed115644ea415b0b200c8

commit be56475ccf47c5b320eed115644ea415b0b200c8
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Thu Sep 12 10:59:41 2024 +0300
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Sun Sep 15 19:28:07 2024 +0300

    [ATL_APITEST] Fix a test that fails on Win 2003 x64
---
 modules/rostests/apitests/atl/CRegKey.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/rostests/apitests/atl/CRegKey.cpp 
b/modules/rostests/apitests/atl/CRegKey.cpp
index c89fdcf243a..4d6d687abc2 100644
--- a/modules/rostests/apitests/atl/CRegKey.cpp
+++ b/modules/rostests/apitests/atl/CRegKey.cpp
@@ -86,7 +86,7 @@ START_TEST(CRegKey)
     memset(buffer, 0, sizeof(buffer));
     lret = key3.QueryValue(_T("APITEST_VALUE_NAME"), &type, buffer, 
&buffer_size);
     ok(lret == ERROR_ACCESS_DENIED, "Expected lret to be ERROR_ACCESS_DENIED, 
was: %lu\n", lret);
-    ok(type == 0 || broken(type > 200), "Expected type to be 0, was: %lu\n", 
type);
+    ok(type == 0 || ((sizeof(void*) == 8) && broken(type == 1)) || broken(type 
> 200), "Expected type to be 0, was: %lu\n", type);
     ok(buffer_size == sizeof(buffer), "Expected buffer_size to be %u, was: 
%lu\n", sizeof(buffer), buffer_size);
 
 

Reply via email to