[PATCH] amstream/tests: Handle missing DirectDraw7

Detlef Riekenberg wine.dev at web.de
Sun Aug 5 16:01:48 CDT 2012


--
By by ... Detlef
---
 dlls/amstream/tests/amstream.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/amstream/tests/amstream.c b/dlls/amstream/tests/amstream.c
index ffc6fe0..b3f0318 100644
--- a/dlls/amstream/tests/amstream.c
+++ b/dlls/amstream/tests/amstream.c
@@ -55,7 +55,8 @@ static int create_directdraw(void)
        goto error;
 
     hr = IDirectDraw_QueryInterface(pdd, &IID_IDirectDraw7, (LPVOID*)&pdd7);
-    ok(hr==DD_OK, "QueryInterface returned: %x\n", hr);
+    /* DriectDraw7 not present on old NT4 */
+    ok((hr==DD_OK) || broken(hr == E_NOINTERFACE), "QueryInterface returned: %x\n", hr);
     if (hr != DD_OK) goto error;
 
     hr = IDirectDraw7_SetCooperativeLevel(pdd7, GetDesktopWindow(), DDSCL_NORMAL);
-- 
1.7.5.4




More information about the wine-patches mailing list