Alexandre Julliard : rpcrt4: Adjust the start of the proxy virtual table for stubless proxies.
Alexandre Julliard
julliard at winehq.org
Wed Jun 10 10:16:59 CDT 2009
Module: wine
Branch: master
Commit: c35aa1d46d0a05ce1e738d14867c3e233e04fd60
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c35aa1d46d0a05ce1e738d14867c3e233e04fd60
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jun 10 16:54:30 2009 +0200
rpcrt4: Adjust the start of the proxy virtual table for stubless proxies.
---
dlls/rpcrt4/cpsf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/rpcrt4/cpsf.c b/dlls/rpcrt4/cpsf.c
index fe55185..ac1eccf 100644
--- a/dlls/rpcrt4/cpsf.c
+++ b/dlls/rpcrt4/cpsf.c
@@ -167,8 +167,9 @@ static void init_psfactory( CStdPSFactoryBuffer *psfac, const ProxyFileInfo **fi
if (file_list[i]->pDelegatedIIDs && file_list[i]->pDelegatedIIDs[j])
{
- fill_delegated_proxy_table( (IUnknownVtbl *)proxies[j]->Vtbl,
- stubs[j]->header.DispatchTableCount );
+ void **vtbl = proxies[j]->Vtbl;
+ if (file_list[i]->TableVersion > 1) vtbl++;
+ fill_delegated_proxy_table( (IUnknownVtbl *)vtbl, stubs[j]->header.DispatchTableCount );
pSrcRpcStubVtbl = (void * const *)&CStdStubBuffer_Delegating_Vtbl;
}
More information about the wine-cvs
mailing list