Michael Stefaniuc : d3d8: Actually test two return values.

Alexandre Julliard julliard at winehq.org
Wed Mar 27 17:27:37 CDT 2019


Module: wine
Branch: master
Commit: 9936d9ec829c5a2d34dc20338ec3ecd89891263b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9936d9ec829c5a2d34dc20338ec3ecd89891263b

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Mar 26 20:41:36 2019 +0100

d3d8: Actually test two return values.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d8/tests/device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 90b90e9..c5ec9aa 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -9655,7 +9655,7 @@ static void test_get_display_mode(void)
     hr = IDirect3DDevice8_GetDisplayMode(device, &mode);
     ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
     ok(mode.Format == D3DFMT_X8R8G8B8, "Unexpected format %#x.\n", mode.Format);
-    IDirect3D8_GetAdapterDisplayMode(d3d, D3DADAPTER_DEFAULT, &mode);
+    hr = IDirect3D8_GetAdapterDisplayMode(d3d, D3DADAPTER_DEFAULT, &mode);
     ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
     ok(mode.Format == D3DFMT_X8R8G8B8, "Unexpected format %#x.\n", mode.Format);
 
@@ -9679,7 +9679,7 @@ static void test_get_display_mode(void)
     ok(mode.Width == 640, "Unexpected width %u.\n", mode.Width);
     ok(mode.Height == 480, "Unexpected width %u.\n", mode.Height);
     ok(mode.Format == D3DFMT_X8R8G8B8, "Unexpected format %#x.\n", mode.Format);
-    IDirect3D8_GetAdapterDisplayMode(d3d, D3DADAPTER_DEFAULT, &mode);
+    hr = IDirect3D8_GetAdapterDisplayMode(d3d, D3DADAPTER_DEFAULT, &mode);
     ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
     ok(mode.Width == 640, "Unexpected width %u.\n", mode.Width);
     ok(mode.Height == 480, "Unexpected width %u.\n", mode.Height);




More information about the wine-cvs mailing list