[PATCH v2 4/9] ddraw/tests: Test surface after ddraw7 CreateSurface without coop level.
Alex Henrie
alexhenrie24 at gmail.com
Wed Feb 15 21:46:54 CST 2017
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/ddraw/tests/ddraw7.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c
index 31e76403f9..255bc4ca9a 100644
--- a/dlls/ddraw/tests/ddraw7.c
+++ b/dlls/ddraw/tests/ddraw7.c
@@ -3361,7 +3361,7 @@ static void test_initialize(void)
static void test_coop_level_surf_create(void)
{
- IDirectDrawSurface7 *surface;
+ IDirectDrawSurface7 *surface = (IDirectDrawSurface7 *)0xdeadbeef;
IDirectDraw7 *ddraw;
DDSURFACEDESC2 ddsd;
HRESULT hr;
@@ -3375,6 +3375,7 @@ static void test_coop_level_surf_create(void)
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
hr = IDirectDraw7_CreateSurface(ddraw, &ddsd, &surface, NULL);
ok(hr == DDERR_NOCOOPERATIVELEVELSET, "Surface creation returned hr %#x.\n", hr);
+ ok(surface == (IDirectDrawSurface7 *)0xdeadbeef, "Got unexpected surface %p\n", surface);
IDirectDraw7_Release(ddraw);
}
--
2.11.1
More information about the wine-patches
mailing list