mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
Respect wine's indentation. Tabs -> spaces.
svn path=/trunk/; revision=21692
This commit is contained in:
parent
d9ff34c976
commit
8868a11fd1
|
@ -26,22 +26,22 @@
|
|||
|
||||
typedef struct _ContextHandleNdr
|
||||
{
|
||||
UINT attributes;
|
||||
UUID uuid;
|
||||
UINT attributes;
|
||||
UUID uuid;
|
||||
} ContextHandleNdr;
|
||||
|
||||
typedef struct _CContextHandle
|
||||
{
|
||||
RpcBinding *Binding;
|
||||
ContextHandleNdr Ndr;
|
||||
RpcBinding *Binding;
|
||||
ContextHandleNdr Ndr;
|
||||
} CContextHandle;
|
||||
|
||||
/*
|
||||
Keep this structure compatible with public rpcndr.h
|
||||
declaration, otherwise NDRSContextValue macro won't work.
|
||||
typedef struct {
|
||||
void *pad[2];
|
||||
void *userContext;
|
||||
void *pad[2];
|
||||
void *userContext;
|
||||
} *NDR_SCONTEXT;
|
||||
*/
|
||||
|
||||
|
|
|
@ -599,34 +599,34 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy(
|
|||
RPC_BINDING_HANDLE SourceBinding,
|
||||
RPC_BINDING_HANDLE* DestinationBinding)
|
||||
{
|
||||
TRACE("RpcBindingCopy called\n");
|
||||
RpcBinding *DestBinding = 0, *SrcBinding = (RpcBinding*)SourceBinding;
|
||||
TRACE("RpcBindingCopy(%p, %p) called:\n", SourceBinding, DestinationBinding);
|
||||
RpcBinding *DestBinding = 0, *SrcBinding = (RpcBinding*)SourceBinding;
|
||||
|
||||
if(SrcBinding->server)
|
||||
{
|
||||
*DestinationBinding = NULL;
|
||||
return RPC_S_WRONG_KIND_OF_BINDING;
|
||||
}
|
||||
if(SrcBinding->server)
|
||||
{
|
||||
*DestinationBinding = NULL;
|
||||
return RPC_S_WRONG_KIND_OF_BINDING;
|
||||
}
|
||||
|
||||
DestBinding = (RpcBinding*)
|
||||
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(RpcBinding));
|
||||
DestBinding = (RpcBinding*)
|
||||
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(RpcBinding));
|
||||
|
||||
if(!DestBinding)
|
||||
{
|
||||
*DestinationBinding = NULL;
|
||||
return ERROR_NOT_ENOUGH_MEMORY;
|
||||
}
|
||||
if(!DestBinding)
|
||||
{
|
||||
*DestinationBinding = NULL;
|
||||
return ERROR_NOT_ENOUGH_MEMORY;
|
||||
}
|
||||
|
||||
memcpy(DestBinding, SrcBinding, sizeof(RpcBinding));
|
||||
DestBinding->refs = 1;
|
||||
DestBinding->Next = NULL; // FIXME: ?
|
||||
DestBinding->server = FALSE;
|
||||
DestBinding->Protseq = RPCRT4_strndupA(SrcBinding->Protseq, -1);
|
||||
DestBinding->NetworkAddr = RPCRT4_strndupA(SrcBinding->NetworkAddr, -1);
|
||||
DestBinding->Endpoint = RPCRT4_strndupA(SrcBinding->Endpoint, -1);
|
||||
|
||||
*DestinationBinding = DestBinding;
|
||||
return RPC_S_OK;
|
||||
memcpy(DestBinding, SrcBinding, sizeof(RpcBinding));
|
||||
DestBinding->refs = 1;
|
||||
DestBinding->Next = NULL; // FIXME: ?
|
||||
DestBinding->server = FALSE;
|
||||
DestBinding->Protseq = RPCRT4_strndupA(SrcBinding->Protseq, -1);
|
||||
DestBinding->NetworkAddr = RPCRT4_strndupA(SrcBinding->NetworkAddr, -1);
|
||||
DestBinding->Endpoint = RPCRT4_strndupA(SrcBinding->Endpoint, -1);
|
||||
|
||||
*DestinationBinding = DestBinding;
|
||||
return RPC_S_OK;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in a new issue