resubmit: [PATCH] amstream: handle directdraw not being created (Coverity 920)
Marcus Meissner
marcus at jet.franken.de
Mon May 4 17:00:00 CDT 2009
Hi,
error handling for IDirectDraw not being created.
Ciao, Marcus
---
dlls/amstream/tests/amstream.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/amstream/tests/amstream.c b/dlls/amstream/tests/amstream.c
index 4d5d8f2..f59bc06 100644
--- a/dlls/amstream/tests/amstream.c
+++ b/dlls/amstream/tests/amstream.c
@@ -52,6 +52,8 @@ static int create_directdraw(void)
hr = DirectDrawCreate(NULL, &pdd, NULL);
ok(hr==DD_OK, "DirectDrawCreate returned: %x\n", hr);
+ if (hr != DD_OK)
+ goto error;
hr = IDirectDraw_QueryInterface(pdd, &IID_IDirectDraw7, (LPVOID*)&pdd7);
ok(hr==DD_OK, "QueryInterface returned: %x\n", hr);
--
1.5.6
More information about the wine-patches
mailing list