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

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


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

diff --git a/dlls/ddraw/tests/ddraw1.c b/dlls/ddraw/tests/ddraw1.c
index c682466026..d9b589c58b 100644
--- a/dlls/ddraw/tests/ddraw1.c
+++ b/dlls/ddraw/tests/ddraw1.c
@@ -3284,7 +3284,7 @@ static void test_initialize(void)
 
 static void test_coop_level_surf_create(void)
 {
-    IDirectDrawSurface *surface;
+    IDirectDrawSurface *surface = (IDirectDrawSurface *)0xdeadbeef;
     IDirectDraw *ddraw;
     DDSURFACEDESC ddsd;
     HRESULT hr;
@@ -3298,6 +3298,7 @@ static void test_coop_level_surf_create(void)
     ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
     hr = IDirectDraw_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);
 
     IDirectDraw_Release(ddraw);
 }
-- 
2.11.1




More information about the wine-patches mailing list