ole32: Return an error from CoUnmarshalInterface if pStream is NULL
or if ppv is NULL.
Robert Shearman
rob at codeweavers.com
Tue Jan 9 11:17:24 CST 2007
---
dlls/ole32/marshal.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
-------------- next part --------------
diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c
index 4294cb5..3708f50 100644
--- a/dlls/ole32/marshal.c
+++ b/dlls/ole32/marshal.c
@@ -1659,6 +1659,9 @@ HRESULT WINAPI CoUnmarshalInterface(IStr
TRACE("(%p, %s, %p)\n", pStream, debugstr_guid(riid), ppv);
+ if (!pStream || !ppv)
+ return E_INVALIDARG;
+
hr = get_unmarshaler_from_stream(pStream, &pMarshal, &iid);
if (hr != S_OK)
return hr;
More information about the wine-patches
mailing list