Author: tretiakov
Date: Wed Mar 29 22:11:19 2006
New Revision: 21408
URL:
http://svn.reactos.ru/svn/reactos?rev=21408&view=rev
Log:
Implement NDRCContextBinding()
Modified:
trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c
trunk/reactos/dll/win32/rpcrt4/rpc_binding.c
trunk/reactos/dll/win32/rpcrt4/rpc_binding.h
Modified: trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/rpcrt4/ndr_marsha…
==============================================================================
--- trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c (original)
+++ trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c Wed Mar 29 22:11:19 2006
@@ -40,6 +40,8 @@
#include "wine/rpcfc.h"
#include "wine/debug.h"
+
+#include "rpc_binding.h"
WINE_DEFAULT_DEBUG_CHANNEL(ole);
@@ -3292,6 +3294,6 @@
RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext)
{
- FIXME("(%p): stub\n", CContext);
- return NULL;
-}
+
+ return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding;
+}
Modified: trunk/reactos/dll/win32/rpcrt4/rpc_binding.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/rpcrt4/rpc_bindin…
==============================================================================
--- trunk/reactos/dll/win32/rpcrt4/rpc_binding.c (original)
+++ trunk/reactos/dll/win32/rpcrt4/rpc_binding.c Wed Mar 29 22:11:19 2006
@@ -619,7 +619,7 @@
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);
Modified: trunk/reactos/dll/win32/rpcrt4/rpc_binding.h
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/rpcrt4/rpc_bindin…
==============================================================================
--- trunk/reactos/dll/win32/rpcrt4/rpc_binding.h (original)
+++ trunk/reactos/dll/win32/rpcrt4/rpc_binding.h Wed Mar 29 22:11:19 2006
@@ -53,6 +53,13 @@
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);