[PATCH v2 7/9] ddraw/tests: Test ddraw4 CreateSurface with a null descriptor.
Alex Henrie
alexhenrie24 at gmail.com
Wed Feb 15 21:46:57 CST 2017
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/ddraw/tests/ddraw4.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/ddraw/tests/ddraw4.c b/dlls/ddraw/tests/ddraw4.c
index 553cc2550b..2ab7f2d394 100644
--- a/dlls/ddraw/tests/ddraw4.c
+++ b/dlls/ddraw/tests/ddraw4.c
@@ -2263,6 +2263,11 @@ static void test_surface_qi(void)
hr = IDirectDraw4_SetCooperativeLevel(ddraw, window, DDSCL_NORMAL);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
+ surface = (IDirectDrawSurface4 *)0xdeadbeef;
+ hr = IDirectDraw4_CreateSurface(ddraw, NULL, &surface, NULL);
+ ok(hr == DDERR_INVALIDPARAMS, "Got unexpected hr %#x.\n", hr);
+ ok(surface == (IDirectDrawSurface4 *)0xdeadbeef, "Got unexpected surface %p\n", surface);
+
memset(&surface_desc, 0, sizeof(surface_desc));
surface_desc.dwSize = sizeof(surface_desc);
surface_desc.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT;
--
2.11.1
More information about the wine-patches
mailing list