From b7aed8e74b67013ef1c9977c4aaf3b41144d45d0 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 26 May 2010 15:28:46 -0500 Subject: [PATCH] windowscodecs: Account for a NULL pceltFetched in ComponentEnum_Next. --- dlls/windowscodecs/info.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c index 2e558a8..f790dbc 100644 --- a/dlls/windowscodecs/info.c +++ b/dlls/windowscodecs/info.c @@ -817,7 +817,8 @@ static HRESULT WINAPI ComponentEnum_Next(IEnumUnknown *iface, ULONG celt, This->cursor = list_next(&This->objects, This->cursor); } LeaveCriticalSection(&This->lock); - *pceltFetched = num_fetched; + if (pceltFetched) + *pceltFetched = num_fetched; return hr; } -- 1.6.3.3