Module: wine Branch: master Commit: 645f7c6208efe0db680d73979fbf73c4d3540a6e URL: http://source.winehq.org/git/wine.git/?a=commit;h=645f7c6208efe0db680d73979f...
Author: Vincent Povirk vincent@codeweavers.com Date: Wed May 26 15:28:46 2010 -0500
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; }