rpcrt4: Remove variable hr which is not really used from NdrInterfacePointerBufferSize.

Gerald Pfeifer gerald at pfeifer.com
Fri May 14 15:06:47 CDT 2010


---
 dlls/rpcrt4/ndr_ole.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/rpcrt4/ndr_ole.c b/dlls/rpcrt4/ndr_ole.c
index a4c23c2..090be05 100644
--- a/dlls/rpcrt4/ndr_ole.c
+++ b/dlls/rpcrt4/ndr_ole.c
@@ -309,13 +309,12 @@ void WINAPI NdrInterfacePointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
 {
   const IID *riid = get_ip_iid(pStubMsg, pMemory, pFormat);
   ULONG size = 0;
-  HRESULT hr;
 
   TRACE("(%p,%p,%p)\n", pStubMsg, pMemory, pFormat);
   if (!LoadCOM()) return;
-  hr = COM_GetMarshalSizeMax(&size, riid, (LPUNKNOWN)pMemory,
-                            pStubMsg->dwDestContext, pStubMsg->pvDestContext,
-                            MSHLFLAGS_NORMAL);
+  COM_GetMarshalSizeMax(&size, riid, (LPUNKNOWN)pMemory,
+                        pStubMsg->dwDestContext, pStubMsg->pvDestContext,
+                        MSHLFLAGS_NORMAL);
   TRACE("size=%d\n", size);
   pStubMsg->BufferLength += sizeof(DWORD) + size;
 }
-- 
1.6.6.2



More information about the wine-patches mailing list