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

This commit is contained in:
Rob Shearman 2007-01-09 17:17:24 +00:00 committed by Alexandre Julliard
parent 35548d15c4
commit 7730e1408f
1 changed files with 3 additions and 0 deletions

View File

@ -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;