mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
- Fix mixed tab/space formatting issues.
svn path=/trunk/; revision=18065
This commit is contained in:
parent
b14657cd56
commit
500c1e7db2
3 changed files with 26 additions and 29 deletions
|
@ -1,5 +1,4 @@
|
|||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/ntdll/csr/api.c
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/ntdll/csr/capture.c
|
||||
|
@ -119,8 +118,8 @@ CsrAllocateCaptureBuffer(ULONG ArgumentCount,
|
|||
ULONG
|
||||
NTAPI
|
||||
CsrAllocateMessagePointer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
||||
ULONG MessageLength,
|
||||
PVOID *CaptureData)
|
||||
ULONG MessageLength,
|
||||
PVOID *CaptureData)
|
||||
{
|
||||
/* If there's no data, our job is easy. */
|
||||
if (MessageLength == 0)
|
||||
|
@ -159,9 +158,9 @@ CsrAllocateMessagePointer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
|||
VOID
|
||||
NTAPI
|
||||
CsrCaptureMessageBuffer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
||||
PVOID MessageString,
|
||||
ULONG StringLength,
|
||||
PVOID *CapturedData)
|
||||
PVOID MessageString,
|
||||
ULONG StringLength,
|
||||
PVOID *CapturedData)
|
||||
{
|
||||
/* Simply allocate a message pointer in the buffer */
|
||||
CsrAllocateMessagePointer(CaptureBuffer, StringLength, CapturedData);
|
||||
|
@ -255,7 +254,7 @@ CsrCaptureMessageString(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
|||
PLARGE_INTEGER
|
||||
NTAPI
|
||||
CsrCaptureTimeout(LONG Milliseconds,
|
||||
PLARGE_INTEGER Timeout)
|
||||
PLARGE_INTEGER Timeout)
|
||||
{
|
||||
/* Validate the time */
|
||||
if (Milliseconds == -1) return NULL;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/ntdll/csr/connect.c
|
||||
|
@ -40,7 +39,7 @@ HANDLE
|
|||
NTAPI
|
||||
CsrGetProcessId(VOID)
|
||||
{
|
||||
return CsrProcessId;
|
||||
return CsrProcessId;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -187,7 +186,7 @@ CsrConnectToServer(IN PWSTR ObjectDirectory)
|
|||
/* Binary compatibility with MS KERNEL32 */
|
||||
if (NULL == ObjectDirectory)
|
||||
{
|
||||
ObjectDirectory = L"\\Windows";
|
||||
ObjectDirectory = L"\\Windows";
|
||||
}
|
||||
|
||||
/* Calculate the total port name size */
|
||||
|
@ -209,12 +208,12 @@ CsrConnectToServer(IN PWSTR ObjectDirectory)
|
|||
/* Create a section for the port memory */
|
||||
CsrSectionViewSize.QuadPart = CSR_CSRSS_SECTION_SIZE;
|
||||
Status = NtCreateSection(&CsrSectionHandle,
|
||||
SECTION_ALL_ACCESS,
|
||||
NULL,
|
||||
&CsrSectionViewSize,
|
||||
PAGE_READWRITE,
|
||||
SEC_COMMIT,
|
||||
NULL);
|
||||
SECTION_ALL_ACCESS,
|
||||
NULL,
|
||||
&CsrSectionViewSize,
|
||||
PAGE_READWRITE,
|
||||
SEC_COMMIT,
|
||||
NULL);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Failure allocating CSR Section\n");
|
||||
|
@ -256,13 +255,13 @@ CsrConnectToServer(IN PWSTR ObjectDirectory)
|
|||
/* Connect to the port */
|
||||
Status = NtSecureConnectPort(&CsrApiPort,
|
||||
&PortName,
|
||||
&SecurityQos,
|
||||
&LpcWrite,
|
||||
&SecurityQos,
|
||||
&LpcWrite,
|
||||
SystemSid,
|
||||
&LpcRead,
|
||||
NULL,
|
||||
&ConnectionInfo,
|
||||
&ConnectionInfoLength);
|
||||
&LpcRead,
|
||||
NULL,
|
||||
&ConnectionInfo,
|
||||
&ConnectionInfoLength);
|
||||
NtClose(CsrSectionHandle);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -419,9 +418,9 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
|
|||
sizeof(CSR_CLIENT_CONNECT));
|
||||
#endif
|
||||
Status = CsrClientCallServer(&RosApiMessage,
|
||||
NULL,
|
||||
MAKE_CSR_API(CONNECT_PROCESS, CSR_NATIVE),
|
||||
sizeof(CSR_API_MESSAGE));
|
||||
NULL,
|
||||
MAKE_CSR_API(CONNECT_PROCESS, CSR_NATIVE),
|
||||
sizeof(CSR_API_MESSAGE));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue