From: Alex Henrie Subject: [PATCH v2 5/9] ddraw/tests: Test ddraw1 CreateSurface with a null descriptor. Message-Id: <20170216034719.12294-5-alexhenrie24@gmail.com> Date: Wed, 15 Feb 2017 20:46:55 -0700 In-Reply-To: <20170216034719.12294-1-alexhenrie24@gmail.com> References: <20170216034719.12294-1-alexhenrie24@gmail.com> Signed-off-by: Alex Henrie --- dlls/ddraw/tests/ddraw1.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/ddraw/tests/ddraw1.c b/dlls/ddraw/tests/ddraw1.c index d9b589c58b..54f716589d 100644 --- a/dlls/ddraw/tests/ddraw1.c +++ b/dlls/ddraw/tests/ddraw1.c @@ -1978,6 +1978,11 @@ static void test_surface_qi(void) } IDirect3DDevice_Release(device); + surface = (IDirectDrawSurface *)0xdeadbeef; + hr = IDirectDraw_CreateSurface(ddraw, NULL, &surface, NULL); + ok(hr == DDERR_INVALIDPARAMS, "Got unexpected hr %#x.\n", hr); + ok(surface == (IDirectDrawSurface *)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