Implement NDRCContextBinding()

svn path=/trunk/; revision=21408
This commit is contained in:
Saveliy Tretiakov 2006-03-29 18:11:19 +00:00
parent 50602379e8
commit 3fdda32084
3 changed files with 12 additions and 3 deletions

View file

@ -41,6 +41,8 @@
#include "wine/debug.h"
#include "rpc_binding.h"
WINE_DEFAULT_DEBUG_CHANNEL(ole);
#define BUFFER_PARANOIA 20
@ -3292,6 +3294,6 @@ NDR_SCONTEXT WINAPI NdrServerContextNewUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext)
{
FIXME("(%p): stub\n", CContext);
return NULL;
return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding;
}

View file

@ -619,7 +619,7 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy(
memcpy(DestBinding, SrcBinding, sizeof(RpcBinding));
DestBinding->refs = 1;
DestBinding->Next = NULL;
DestBinding->Next = NULL; // FIXME: ?
DestBinding->server = FALSE;
DestBinding->Protseq = RPCRT4_strndupA(SrcBinding->Protseq, -1);
DestBinding->NetworkAddr = RPCRT4_strndupA(SrcBinding->NetworkAddr, -1);

View file

@ -53,6 +53,13 @@ typedef struct _RpcBinding
RpcConnection* FromConn;
} RpcBinding;
typedef struct _CContextHandle
{
RpcBinding *Binding;
BYTE Ndr[20];
} CContextHandle;
LPSTR RPCRT4_strndupA(LPCSTR src, INT len);
LPWSTR RPCRT4_strndupW(LPWSTR src, INT len);
LPSTR RPCRT4_strdupWtoA(LPWSTR src);