commit | 645f7c6208efe0db680d73979fbf73c4d3540a6e | [log] [tgz] |
---|---|---|
author | Vincent Povirk <vincent@codeweavers.com> | Wed May 26 15:28:46 2010 -0500 |
committer | Alexandre Julliard <julliard@winehq.org> | Thu May 27 14:46:43 2010 +0200 |
tree | 16dca5a778e4e4047b474fa833fcc4696360cb22 | |
parent | 6487f3397a1a82405224f23390c3e2f3b7562e48 [diff] |
windowscodecs: Account for a NULL pceltFetched in ComponentEnum_Next.
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 @@ This->cursor = list_next(&This->objects, This->cursor); } LeaveCriticalSection(&This->lock); - *pceltFetched = num_fetched; + if (pceltFetched) + *pceltFetched = num_fetched; return hr; }