Commit 870bb4e6 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

amstream/tests: Handle directdraw not being created (Coverity 920).

parent b12c46be
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment