Module: wine Branch: master Commit: 923bc6bf3d443079ad698cee514c76d4cb435d84 URL: http://source.winehq.org/git/wine.git/?a=commit;h=923bc6bf3d443079ad698cee51...
Author: Rob Shearman rob@codeweavers.com Date: Tue Jan 9 17:16:19 2007 +0000
ole32: Return an error in CoMarshalInterface if pStream is NULL.
---
dlls/ole32/marshal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c index 01368cb..4294cb5 100644 --- a/dlls/ole32/marshal.c +++ b/dlls/ole32/marshal.c @@ -1550,7 +1550,7 @@ HRESULT WINAPI CoMarshalInterface(IStrea dump_MSHLFLAGS(mshlFlags); TRACE(")\n");
- if (pUnk == NULL) + if (!pUnk || !pStream) return E_INVALIDARG;
objref.signature = OBJREF_SIGNATURE;