[PATCH 3/6] qcap/avico: Don't try to commit a NULL allocator in AVICompressor_Run().
Zebediah Figura
z.figura12 at gmail.com
Thu Sep 26 21:40:50 CDT 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
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 89e8dda08f8..ea98b2a6553 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;
}
--
2.23.0
More information about the wine-devel
mailing list