[PATCH 2/7] ddraw/tests: Test IDirectDraw7_CreateSurface without cooperative level.
Alex Henrie
alexhenrie24 at gmail.com
Wed Feb 15 00:53:44 CST 2017
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/ddraw/tests/ddraw7.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c
index 31e76403f9..c081aef878 100644
--- a/dlls/ddraw/tests/ddraw7.c
+++ b/dlls/ddraw/tests/ddraw7.c
@@ -1987,6 +1987,12 @@ static void test_surface_qi(void)
IDirect3DDevice_Release(device);
ddraw = create_ddraw();
ok(!!ddraw, "Failed to create a ddraw object.\n");
+
+ surface = (IDirectDrawSurface7 *)0xdeadbeef;
+ hr = IDirectDraw7_CreateSurface(ddraw, NULL, &surface, NULL);
+ ok(hr == DDERR_NOCOOPERATIVELEVELSET, "Got unexpected hr %#x.\n", hr);
+ ok(surface == (IDirectDrawSurface7 *)0xdeadbeef, "Got unexpected surface %p\n", surface);
+
hr = IDirectDraw7_SetCooperativeLevel(ddraw, window, DDSCL_NORMAL);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
--
2.11.1
More information about the wine-patches
mailing list