[PATCH v2 3/9] ddraw/tests: Test surface after ddraw4 CreateSurface without coop level.

Alex Henrie alexhenrie24 at gmail.com
Wed Feb 15 21:46:53 CST 2017


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/ddraw/tests/ddraw4.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/ddraw/tests/ddraw4.c b/dlls/ddraw/tests/ddraw4.c
index bda2ebfa54..553cc2550b 100644
--- a/dlls/ddraw/tests/ddraw4.c
+++ b/dlls/ddraw/tests/ddraw4.c
@@ -3635,7 +3635,7 @@ static void test_initialize(void)
 
 static void test_coop_level_surf_create(void)
 {
-    IDirectDrawSurface4 *surface;
+    IDirectDrawSurface4 *surface = (IDirectDrawSurface4 *)0xdeadbeef;
     IDirectDraw4 *ddraw;
     DDSURFACEDESC2 ddsd;
     HRESULT hr;
@@ -3649,6 +3649,7 @@ static void test_coop_level_surf_create(void)
     ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
     hr = IDirectDraw4_CreateSurface(ddraw, &ddsd, &surface, NULL);
     ok(hr == DDERR_NOCOOPERATIVELEVELSET, "Surface creation returned hr %#x.\n", hr);
+    ok(surface == (IDirectDrawSurface4 *)0xdeadbeef, "Got unexpected surface %p\n", surface);
 
     IDirectDraw4_Release(ddraw);
 }
-- 
2.11.1




More information about the wine-patches mailing list