[PATCH v2 2/9] ddraw/tests: Test surface after ddraw2 CreateSurface without coop level.
Alex Henrie
alexhenrie24 at gmail.com
Wed Feb 15 21:46:52 CST 2017
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/ddraw/tests/ddraw2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ddraw/tests/ddraw2.c b/dlls/ddraw/tests/ddraw2.c
index d6491ea440..8af657980c 100644
--- a/dlls/ddraw/tests/ddraw2.c
+++ b/dlls/ddraw/tests/ddraw2.c
@@ -3505,7 +3505,7 @@ static void test_initialize(void)
static void test_coop_level_surf_create(void)
{
- IDirectDrawSurface *surface;
+ IDirectDrawSurface *surface = (IDirectDrawSurface *)0xdeadbeef;
IDirectDraw2 *ddraw;
DDSURFACEDESC ddsd;
HRESULT hr;
@@ -3519,6 +3519,7 @@ static void test_coop_level_surf_create(void)
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
hr = IDirectDraw2_CreateSurface(ddraw, &ddsd, &surface, NULL);
ok(hr == DDERR_NOCOOPERATIVELEVELSET, "Surface creation returned hr %#x.\n", hr);
+ ok(surface == (IDirectDrawSurface *)0xdeadbeef, "Got unexpected surface %p\n", surface);
IDirectDraw2_Release(ddraw);
}
--
2.11.1
More information about the wine-patches
mailing list