Respect wine's indentation. Tabs -> spaces.

svn path=/trunk/; revision=21692
This commit is contained in:
Saveliy Tretiakov 2006-04-22 04:50:37 +00:00
parent d9ff34c976
commit 8868a11fd1
2 changed files with 30 additions and 30 deletions

View file

@ -26,22 +26,22 @@
typedef struct _ContextHandleNdr typedef struct _ContextHandleNdr
{ {
UINT attributes; UINT attributes;
UUID uuid; UUID uuid;
} ContextHandleNdr; } ContextHandleNdr;
typedef struct _CContextHandle typedef struct _CContextHandle
{ {
RpcBinding *Binding; RpcBinding *Binding;
ContextHandleNdr Ndr; ContextHandleNdr Ndr;
} CContextHandle; } CContextHandle;
/* /*
Keep this structure compatible with public rpcndr.h Keep this structure compatible with public rpcndr.h
declaration, otherwise NDRSContextValue macro won't work. declaration, otherwise NDRSContextValue macro won't work.
typedef struct { typedef struct {
void *pad[2]; void *pad[2];
void *userContext; void *userContext;
} *NDR_SCONTEXT; } *NDR_SCONTEXT;
*/ */

View file

@ -599,34 +599,34 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy(
RPC_BINDING_HANDLE SourceBinding, RPC_BINDING_HANDLE SourceBinding,
RPC_BINDING_HANDLE* DestinationBinding) RPC_BINDING_HANDLE* DestinationBinding)
{ {
TRACE("RpcBindingCopy called\n"); TRACE("RpcBindingCopy(%p, %p) called:\n", SourceBinding, DestinationBinding);
RpcBinding *DestBinding = 0, *SrcBinding = (RpcBinding*)SourceBinding; RpcBinding *DestBinding = 0, *SrcBinding = (RpcBinding*)SourceBinding;
if(SrcBinding->server) if(SrcBinding->server)
{ {
*DestinationBinding = NULL; *DestinationBinding = NULL;
return RPC_S_WRONG_KIND_OF_BINDING; return RPC_S_WRONG_KIND_OF_BINDING;
} }
DestBinding = (RpcBinding*) DestBinding = (RpcBinding*)
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(RpcBinding)); HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(RpcBinding));
if(!DestBinding) if(!DestBinding)
{ {
*DestinationBinding = NULL; *DestinationBinding = NULL;
return ERROR_NOT_ENOUGH_MEMORY; return ERROR_NOT_ENOUGH_MEMORY;
} }
memcpy(DestBinding, SrcBinding, sizeof(RpcBinding)); memcpy(DestBinding, SrcBinding, sizeof(RpcBinding));
DestBinding->refs = 1; DestBinding->refs = 1;
DestBinding->Next = NULL; // FIXME: ? DestBinding->Next = NULL; // FIXME: ?
DestBinding->server = FALSE; DestBinding->server = FALSE;
DestBinding->Protseq = RPCRT4_strndupA(SrcBinding->Protseq, -1); DestBinding->Protseq = RPCRT4_strndupA(SrcBinding->Protseq, -1);
DestBinding->NetworkAddr = RPCRT4_strndupA(SrcBinding->NetworkAddr, -1); DestBinding->NetworkAddr = RPCRT4_strndupA(SrcBinding->NetworkAddr, -1);
DestBinding->Endpoint = RPCRT4_strndupA(SrcBinding->Endpoint, -1); DestBinding->Endpoint = RPCRT4_strndupA(SrcBinding->Endpoint, -1);
*DestinationBinding = DestBinding; *DestinationBinding = DestBinding;
return RPC_S_OK; return RPC_S_OK;
} }
/*********************************************************************** /***********************************************************************