Module: wine Branch: master Commit: 084cb90f5834aa6dbdf69c7e24b6f0f72b0707de URL: https://source.winehq.org/git/wine.git/?a=commit;h=084cb90f5834aa6dbdf69c7e2...
Author: Zebediah Figura z.figura12@gmail.com Date: Thu Sep 26 21:40:50 2019 -0500
qcap/avico: Don't try to commit a NULL allocator in AVICompressor_Run().
Signed-off-by: Zebediah Figura z.figura12@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/qcap/avico.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/qcap/avico.c b/dlls/qcap/avico.c index 89e8dda08f..ea98b2a655 100644 --- a/dlls/qcap/avico.c +++ b/dlls/qcap/avico.c @@ -148,8 +148,8 @@ static HRESULT WINAPI AVICompressor_Run(IBaseFilter *iface, REFERENCE_TIME tStar if(This->filter.state == State_Running) return S_OK;
- hres = IMemAllocator_Commit(This->source.pAllocator); - if(FAILED(hres)) { + if (This->source.pAllocator && FAILED(hres = IMemAllocator_Commit(This->source.pAllocator))) + { FIXME("Commit failed: %08x\n", hres); return hres; }