mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[CSRSRV2]: Fix some bugs.
svn path=/trunk/; revision=55614
This commit is contained in:
parent
38df4fd23c
commit
beedafd586
2 changed files with 9 additions and 9 deletions
|
@ -153,15 +153,15 @@ CsrSbApiPortInitialize(VOID)
|
|||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&CsrSbApiPortName,
|
||||
0,
|
||||
PortSd,
|
||||
NULL);
|
||||
NULL,
|
||||
PortSd);
|
||||
|
||||
/* Create the Port Object */
|
||||
Status = NtCreatePort(&CsrSbApiPort,
|
||||
&ObjectAttributes,
|
||||
sizeof(SB_CONNECTION_INFO),
|
||||
sizeof(PSB_API_MSG),
|
||||
32 * sizeof(PSB_API_MSG));
|
||||
sizeof(SB_API_MSG),
|
||||
32 * sizeof(SB_API_MSG));
|
||||
if (PortSd) RtlFreeHeap(CsrHeap, 0, PortSd);
|
||||
|
||||
if (NT_SUCCESS(Status))
|
||||
|
|
|
@ -771,8 +771,8 @@ CsrSetDirectorySecurity(IN HANDLE ObjectDirectory)
|
|||
*--*/
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
CsrServerInitialization(ULONG ArgumentCount,
|
||||
PCHAR Arguments[])
|
||||
CsrServerInitialization(IN ULONG ArgumentCount,
|
||||
IN PCHAR Arguments[])
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
ULONG i = 0;
|
||||
|
@ -865,7 +865,7 @@ CsrServerInitialization(ULONG ArgumentCount,
|
|||
ServerDll = CsrLoadedServerDll[i];
|
||||
|
||||
/* Is it loaded, and does it have per process data? */
|
||||
if (ServerDll && ServerDll->SizeOfProcessData)
|
||||
if ((ServerDll) && (ServerDll->SizeOfProcessData))
|
||||
{
|
||||
/* It does, give it part of our allocated heap */
|
||||
CsrRootProcess->ServerData[i] = ProcessData;
|
||||
|
@ -888,10 +888,10 @@ CsrServerInitialization(ULONG ArgumentCount,
|
|||
ServerDll = CsrLoadedServerDll[i];
|
||||
|
||||
/* Is it loaded, and does it a callback for new processes? */
|
||||
if (ServerDll && ServerDll->NewProcessCallback)
|
||||
if ((ServerDll) && (ServerDll->NewProcessCallback))
|
||||
{
|
||||
/* Call the callback */
|
||||
(*ServerDll->NewProcessCallback)(NULL, CsrRootProcess);
|
||||
ServerDll->NewProcessCallback(NULL, CsrRootProcess);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue