Vincent Povirk : windowscodecs: Account for a NULL pceltFetched in ComponentEnum_Next.
Alexandre Julliard
julliard at winehq.org
Thu May 27 10:46:41 CDT 2010
Module: wine
Branch: master
Commit: 645f7c6208efe0db680d73979fbf73c4d3540a6e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=645f7c6208efe0db680d73979fbf73c4d3540a6e
Author: Vincent Povirk <vincent at 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;
}
More information about the wine-cvs
mailing list