From 923bc6bf3d443079ad698cee514c76d4cb435d84 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 9 Jan 2007 17:16:19 +0000 Subject: [PATCH] ole32: Return an error in CoMarshalInterface if pStream is NULL. --- dlls/ole32/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c index 01368cbd04a..4294cb5d9e3 100644 --- a/dlls/ole32/marshal.c +++ b/dlls/ole32/marshal.c @@ -1550,7 +1550,7 @@ HRESULT WINAPI CoMarshalInterface(IStream *pStream, REFIID riid, IUnknown *pUnk, dump_MSHLFLAGS(mshlFlags); TRACE(")\n"); - if (pUnk == NULL) + if (!pUnk || !pStream) return E_INVALIDARG; objref.signature = OBJREF_SIGNATURE;