From 3047ea9e78de86f39fbb0f63dc5b38db783d2f3a Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 19 Feb 2007 15:11:32 +0000 Subject: [PATCH] ole32: Make an error message more useful by printing the returned error code. --- dlls/ole32/marshal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c index e79e93da720..490b76291fb 100644 --- a/dlls/ole32/marshal.c +++ b/dlls/ole32/marshal.c @@ -123,7 +123,8 @@ HRESULT marshal_object(APARTMENT *apt, STDOBJREF *stdobjref, REFIID riid, IUnkno IPSFactoryBuffer_Release(psfb); if (hr != S_OK) { - ERR("Failed to create an IRpcStubBuffer from IPSFactory for %s\n", debugstr_guid(riid)); + ERR("Failed to create an IRpcStubBuffer from IPSFactory for %s with error 0x%08x\n", + debugstr_guid(riid), hr); IUnknown_Release(iobject); return hr; }