Author: tretiakov
Date: Fri Apr 21 20:28:25 2006
New Revision: 21686
URL:
http://svn.reactos.ru/svn/reactos?rev=21686&view=rev
Log:
Respect wine's indentation. Tabs -> spaces.
Modified:
trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c
Modified: trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/rpcrt4/ndr_contex…
==============================================================================
--- trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c (original)
+++ trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c Fri Apr 21 20:28:25 2006
@@ -135,10 +135,10 @@
*/
RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext)
{
- if(!CContext)
- RpcRaiseException(ERROR_INVALID_HANDLE);
-
- return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding;
+ if(!CContext)
+ RpcRaiseException(ERROR_INVALID_HANDLE);
+
+ return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding;
}
/***********************************************************************
@@ -146,8 +146,8 @@
*/
void WINAPI NDRCContextMarshall(NDR_CCONTEXT CContext, void *pBuff )
{
- CContextHandle *ctx = (CContextHandle*)CContext;
- memcpy(pBuff, &ctx->Ndr, sizeof(ContextHandleNdr));
+ CContextHandle *ctx = (CContextHandle*)CContext;
+ memcpy(pBuff, &ctx->Ndr, sizeof(ContextHandleNdr));
}
/***********************************************************************
@@ -157,12 +157,12 @@
NDR_CCONTEXT ContextHandle,
int fCheck)
{
- if(!ContextHandle)
- RpcRaiseException(ERROR_INVALID_HANDLE);
-
- NDRCContextMarshall(ContextHandle, pStubMsg->Buffer);
-
- pStubMsg->Buffer += sizeof(ContextHandleNdr);
+ if(!ContextHandle)
+ RpcRaiseException(ERROR_INVALID_HANDLE);
+
+ NDRCContextMarshall(ContextHandle, pStubMsg->Buffer);
+
+ pStubMsg->Buffer += sizeof(ContextHandleNdr);
}
@@ -174,30 +174,30 @@
void *pBuff,
unsigned long DataRepresentation )
{
- CContextHandle *ctx = (CContextHandle*)*pCContext;
- ContextHandleNdr *ndr = (ContextHandleNdr*)pBuff;
- RPC_STATUS status;
-
- if(UuidIsNil(&ndr->uuid, &status))
- {
- if(ctx)
- {
- RPCRT4_DestroyBinding(ctx->Binding);
- HeapFree(GetProcessHeap(), 0, ctx);
- }
- *pCContext = NULL;
- }
- else
- {
- ctx = HeapAlloc(GetProcessHeap(), 0, sizeof(CContextHandle));
- if(!ctx) RpcRaiseException(ERROR_OUTOFMEMORY);
-
- status = RpcBindingCopy(hBinding, (RPC_BINDING_HANDLE*) &ctx->Binding);
- if(status != RPC_S_OK) RpcRaiseException(status);
-
- memcpy(&ctx->Ndr, ndr, sizeof(ContextHandleNdr));
- *pCContext = (NDR_CCONTEXT)ctx;
- }
+ CContextHandle *ctx = (CContextHandle*)*pCContext;
+ ContextHandleNdr *ndr = (ContextHandleNdr*)pBuff;
+ RPC_STATUS status;
+
+ if(UuidIsNil(&ndr->uuid, &status))
+ {
+ if(ctx)
+ {
+ RPCRT4_DestroyBinding(ctx->Binding);
+ HeapFree(GetProcessHeap(), 0, ctx);
+ }
+ *pCContext = NULL;
+ }
+ else
+ {
+ ctx = HeapAlloc(GetProcessHeap(), 0, sizeof(CContextHandle));
+ if(!ctx) RpcRaiseException(ERROR_OUTOFMEMORY);
+
+ status = RpcBindingCopy(hBinding, (RPC_BINDING_HANDLE*) &ctx->Binding);
+ if(status != RPC_S_OK) RpcRaiseException(status);
+
+ memcpy(&ctx->Ndr, ndr, sizeof(ContextHandleNdr));
+ *pCContext = (NDR_CCONTEXT)ctx;
+ }
}
/***********************************************************************
@@ -207,16 +207,16 @@
NDR_CCONTEXT * pContextHandle,
RPC_BINDING_HANDLE BindHandle)
{
-
- if(!pContextHandle || !BindHandle)
- RpcRaiseException(ERROR_INVALID_HANDLE);
-
- NDRCContextUnmarshall(pContextHandle,
- (CContextHandle*)BindHandle,
- pStubMsg->Buffer,
- pStubMsg->RpcMsg->DataRepresentation);
-
- pStubMsg->Buffer += sizeof(ContextHandleNdr);
+
+ if(!pContextHandle || !BindHandle)
+ RpcRaiseException(ERROR_INVALID_HANDLE);
+
+ NDRCContextUnmarshall(pContextHandle,
+ (CContextHandle*)BindHandle,
+ pStubMsg->Buffer,
+ pStubMsg->RpcMsg->DataRepresentation);
+
+ pStubMsg->Buffer += sizeof(ContextHandleNdr);
}
/***********************************************************************
@@ -224,16 +224,16 @@
*/
RPC_STATUS WINAPI RpcSmDestroyClientContext(void** ContextHandle)
{
- CContextHandle *ctx = (CContextHandle*)ContextHandle;
-
- if(!ctx)
- return RPC_X_SS_CONTEXT_MISMATCH;
-
- RPCRT4_DestroyBinding(ctx->Binding);
- HeapFree(GetProcessHeap(), 0, ctx);
- *ContextHandle = NULL;
-
- return RPC_S_OK;
+ CContextHandle *ctx = (CContextHandle*)ContextHandle;
+
+ if(!ctx)
+ return RPC_X_SS_CONTEXT_MISMATCH;
+
+ RPCRT4_DestroyBinding(ctx->Binding);
+ HeapFree(GetProcessHeap(), 0, ctx);
+ *ContextHandle = NULL;
+
+ return RPC_S_OK;
}
/***********************************************************************
@@ -241,12 +241,12 @@
*/
void WINAPI RpcSsDestroyClientContext(void** ContextHandle)
{
- RPC_STATUS status;
-
- status = RpcSmDestroyClientContext(ContextHandle);
-
- if(status != RPC_S_OK)
- RpcRaiseException(status);
+ RPC_STATUS status;
+
+ status = RpcSmDestroyClientContext(ContextHandle);
+
+ if(status != RPC_S_OK)
+ RpcRaiseException(status);
}
/***********************************************************************
@@ -256,7 +256,7 @@
unsigned char* pMemory,
PFORMAT_STRING pFormat)
{
- FIXME("(%p, %p, %p): stub\n", pStubMsg, pMemory, pFormat);
+ FIXME("(%p, %p, %p): stub\n", pStubMsg, pMemory, pFormat);
}
/***********************************************************************
@@ -265,8 +265,8 @@
NDR_SCONTEXT WINAPI NdrContextHandleInitialize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
- FIXME("(%p, %p): stub\n", pStubMsg, pFormat);
- return NULL;
+ FIXME("(%p, %p): stub\n", pStubMsg, pFormat);
+ return NULL;
}
/***********************************************************************
@@ -281,7 +281,7 @@
if(!ContextHandle)
RpcRaiseException(ERROR_INVALID_HANDLE);
-
+
Hdl = (SContextHandle*)ContextHandle;
Binding = (RpcBinding*)pStubMsg->RpcMsg->Handle;
Hdl->Rundown = RundownRoutine;
@@ -296,7 +296,7 @@
NDR_SCONTEXT WINAPI NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg)
{
SContextHandle *Hdl;
-
+
Hdl = RPCRT4_SrvUnmarshallCtxHdl((ContextHandleNdr*)pStubMsg->Buffer);
return (NDR_SCONTEXT)Hdl;
}
@@ -309,7 +309,7 @@
NDR_RUNDOWN RundownRoutine,
PFORMAT_STRING pFormat)
{
- FIXME("(%p, %p, %p, %p): stub\n", pStubMsg, ContextHandle, RundownRoutine,
pFormat);
+ FIXME("(%p, %p, %p, %p): stub\n", pStubMsg, ContextHandle, RundownRoutine,
pFormat);
}
/***********************************************************************
@@ -318,8 +318,8 @@
NDR_SCONTEXT WINAPI NdrServerContextNewUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
- FIXME("(%p, %p): stub\n", pStubMsg, pFormat);
- return NULL;
+ FIXME("(%p, %p): stub\n", pStubMsg, pFormat);
+ return NULL;
}
/***********************************************************************
@@ -345,7 +345,7 @@
NDR_SCONTEXT WINAPI NDRSContextUnmarshall(IN void *pBuff,
IN unsigned long DataRepresentation)
{
- return (NDR_SCONTEXT) RPCRT4_SrvUnmarshallCtxHdl((ContextHandleNdr*)pBuff);
+ return (NDR_SCONTEXT) RPCRT4_SrvUnmarshallCtxHdl((ContextHandleNdr*)pBuff);
}
/***********************************************************************
@@ -356,7 +356,7 @@
OUT void *pBuff,
IN NDR_RUNDOWN userRunDownIn)
{
- FIXME("stub\n");
+ FIXME("stub\n");
}
/***********************************************************************
@@ -366,6 +366,6 @@
IN void *pBuff,
IN unsigned long DataRepresentation)
{
- FIXME("stub\n");
- return NULL;
-}
+ FIXME("stub\n");
+ return NULL;
+}