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

commit 3d4a557db32a238ae6aa6209cbdb90fa816801ee
Author:     Mark Jansen <[email protected]>
AuthorDate: Sat Dec 14 17:16:00 2019 +0100
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Sat Dec 21 12:44:48 2019 +0100

    [ATL_APITEST] Fix CComVariant test
---
 modules/rostests/apitests/atl/CComVariant.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/rostests/apitests/atl/CComVariant.cpp 
b/modules/rostests/apitests/atl/CComVariant.cpp
index 32df6f253b2..cd6cd605301 100644
--- a/modules/rostests/apitests/atl/CComVariant.cpp
+++ b/modules/rostests/apitests/atl/CComVariant.cpp
@@ -11,6 +11,7 @@
 
 #include <apitest.h>
 #include <atlbase.h>
+#include <versionhelpers.h>
 
 void expect_bool_imp(const CComVariant& ccv, bool value)
 {
@@ -46,7 +47,8 @@ void expect_error_imp(const CComVariant& ccv, SCODE value)
 void expect_empty_imp(const CComVariant& ccv)
 {
     winetest_ok(V_VT(&ccv) == VT_EMPTY, "Expected .vt to be VT_EMPTY, was 
%u\n", V_VT(&ccv));
-    winetest_ok(V_I8(&ccv) == 0ll, "Expected value to be 0, was: %I64d\n", 
V_I8(&ccv));
+    if (IsWindows8OrGreater())
+        winetest_ok(V_I8(&ccv) == 0ll, "Expected value to be 0, was: %I64d\n", 
V_I8(&ccv));
 }
 
 #define expect_bool         (winetest_set_location(__FILE__, __LINE__), 0) ? 
(void)0 : expect_bool_imp

Reply via email to