quartz: Avoid endless loop (Coverity).
Signed-off-by: Marcus Meissner <marcus@jet.franken.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
592533bd72
commit
5bc57faf86
|
@ -3085,6 +3085,7 @@ static HRESULT VMR9DefaultAllocatorPresenterImpl_create(struct quartz_vmr *paren
|
|||
D3DDISPLAYMODE mode;
|
||||
|
||||
hr = IDirect3D9_EnumAdapterModes(This->d3d9_ptr, i++, D3DFMT_X8R8G8B8, 0, &mode);
|
||||
if (hr == D3DERR_INVALIDCALL) break; /* out of adapters */
|
||||
} while (FAILED(hr));
|
||||
if (FAILED(hr))
|
||||
ERR("HR: %08x\n", hr);
|
||||
|
|
Loading…
Reference in New Issue