From 3d4a557db32a238ae6aa6209cbdb90fa816801ee Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 14 Dec 2019 17:16:00 +0100 Subject: [PATCH] [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 #include +#include 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