Module: wine Branch: master Commit: 5bc57faf86a476524cf6355b94fa3d6da0226e13 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5bc57faf86a476524cf6355b94...
Author: Marcus Meissner marcus@jet.franken.de Date: Sat Oct 31 10:43:25 2015 +0100
quartz: Avoid endless loop (Coverity).
Signed-off-by: Marcus Meissner marcus@jet.franken.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/quartz/vmr9.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c index 10b9dff..3538ddb 100644 --- a/dlls/quartz/vmr9.c +++ b/dlls/quartz/vmr9.c @@ -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);