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

This commit is contained in:
Marcus Meissner 2009-04-22 10:22:05 +02:00 committed by Alexandre Julliard
parent b12c46be4a
commit 870bb4e6de
1 changed files with 2 additions and 0 deletions

View File

@ -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);