amstream/tests: Handle directdraw not being created (Coverity 920).
This commit is contained in:
parent
b12c46be4a
commit
870bb4e6de
|
@ -52,6 +52,8 @@ static int create_directdraw(void)
|
||||||
|
|
||||||
hr = DirectDrawCreate(NULL, &pdd, NULL);
|
hr = DirectDrawCreate(NULL, &pdd, NULL);
|
||||||
ok(hr==DD_OK, "DirectDrawCreate returned: %x\n", hr);
|
ok(hr==DD_OK, "DirectDrawCreate returned: %x\n", hr);
|
||||||
|
if (hr != DD_OK)
|
||||||
|
goto error;
|
||||||
|
|
||||||
hr = IDirectDraw_QueryInterface(pdd, &IID_IDirectDraw7, (LPVOID*)&pdd7);
|
hr = IDirectDraw_QueryInterface(pdd, &IID_IDirectDraw7, (LPVOID*)&pdd7);
|
||||||
ok(hr==DD_OK, "QueryInterface returned: %x\n", hr);
|
ok(hr==DD_OK, "QueryInterface returned: %x\n", hr);
|
||||||
|
|
Loading…
Reference in New Issue