Robert Shearman : rpcrt4: Call NdrStubCall2 when dealing with a pure interpreted stub

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 6 14:49:26 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 3180de6a981339b6e3bf761081b092407cce9c2e
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=3180de6a981339b6e3bf761081b092407cce9c2e

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Jan  6 21:07:20 2006 +0100

rpcrt4: Call NdrStubCall2 when dealing with a pure interpreted stub
that has no dispatch table.

---

 dlls/rpcrt4/cstub.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/cstub.c b/dlls/rpcrt4/cstub.c
index 2633298..a2c62c0 100644
--- a/dlls/rpcrt4/cstub.c
+++ b/dlls/rpcrt4/cstub.c
@@ -144,7 +144,10 @@ HRESULT WINAPI CStdStubBuffer_Invoke(LPR
   DWORD dwPhase = STUB_UNMARSHAL;
   TRACE("(%p)->Invoke(%p,%p)\n",This,pMsg,pChannel);
 
-  STUB_HEADER(This).pDispatchTable[pMsg->iMethod](iface, pChannel, (PRPC_MESSAGE)pMsg, &dwPhase);
+  if (STUB_HEADER(This).pDispatchTable)
+    STUB_HEADER(This).pDispatchTable[pMsg->iMethod](iface, pChannel, (PRPC_MESSAGE)pMsg, &dwPhase);
+  else /* pure interpreted */
+    NdrStubCall2(iface, pChannel, (PRPC_MESSAGE)pMsg, &dwPhase);
   return S_OK;
 }
 




More information about the wine-cvs mailing list