From 0ceacf017f38a004ef7716dc8b3b89c9f1783014 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 19 Sep 2005 14:34:04 +0000 Subject: [PATCH] Fix the return codes during unmarshaling so that it returns failure codes instead of S_FALSE returned from IStream_Read. --- dlls/ole32/marshal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c index 21d0ffe926f..4342c52f67a 100644 --- a/dlls/ole32/marshal.c +++ b/dlls/ole32/marshal.c @@ -1024,7 +1024,7 @@ StdMarshalImpl_UnmarshalInterface(LPMARSHAL iface, IStream *pStm, REFIID riid, v /* read STDOBJREF from wire */ hres = IStream_Read(pStm, &stdobjref, sizeof(stdobjref), &res); - if (hres) return hres; + if (hres) return STG_E_READFAULT; hres = apartment_getoxid(apt, &oxid); if (hres) return hres; @@ -1094,7 +1094,7 @@ StdMarshalImpl_ReleaseMarshalData(LPMARSHAL iface, IStream *pStm) TRACE("iface=%p, pStm=%p\n", iface, pStm); hres = IStream_Read(pStm, &stdobjref, sizeof(stdobjref), &res); - if (hres) return hres; + if (hres) return STG_E_READFAULT; TRACE("oxid = %s, oid = %s, ipid = %s\n", wine_dbgstr_longlong(stdobjref.oxid),