[PATCH v2] evr/tests: Fix a test failure on Windows 7.

Sven Baars sbaars at codeweavers.com
Mon Oct 12 07:05:05 CDT 2020


Signed-off-by: Sven Baars <sbaars at codeweavers.com>
---
v2: Only check for the presence of D3DPRESENTFLAG_VIDEO.

 dlls/evr/tests/evr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/evr/tests/evr.c b/dlls/evr/tests/evr.c
index 175c30e8188..7649259c5f0 100644
--- a/dlls/evr/tests/evr.c
+++ b/dlls/evr/tests/evr.c
@@ -1073,7 +1073,7 @@ static void test_default_presenter(void)
     ok(present_params.hDeviceWindow == GetDesktopWindow(), "Unexpected device window.\n");
     ok(present_params.Windowed, "Unexpected windowed mode.\n");
     ok(present_params.SwapEffect == D3DSWAPEFFECT_COPY, "Unexpected swap effect.\n");
-    ok(present_params.Flags == D3DPRESENTFLAG_VIDEO, "Unexpected flags.\n");
+    ok(present_params.Flags & D3DPRESENTFLAG_VIDEO, "Unexpected flags %#x.\n", present_params.Flags);
     ok(present_params.PresentationInterval == D3DPRESENT_INTERVAL_IMMEDIATE, "Unexpected present interval.\n");
 
     IDirect3DDevice9_Release(d3d_device);
-- 
2.25.1




More information about the wine-devel mailing list