mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:35:40 +00:00
Respect wine's indentation. Tabs -> spaces.
svn path=/trunk/; revision=21692
This commit is contained in:
parent
d9ff34c976
commit
8868a11fd1
2 changed files with 30 additions and 30 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue