Commit 7730e140 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Return an error from CoUnmarshalInterface if pStream is NULL or if ppv is NULL.

parent 35548d15
......@@ -1659,6 +1659,9 @@ HRESULT WINAPI CoUnmarshalInterface(IStream *pStream, REFIID riid, LPVOID *ppv)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment