mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&CsrSbApiPortName,
|
&CsrSbApiPortName,
|
||||||
0,
|
0,
|
||||||
PortSd,
|
NULL,
|
||||||
NULL);
|
PortSd);
|
||||||
|
|
||||||
/* Create the Port Object */
|
/* Create the Port Object */
|
||||||
Status = NtCreatePort(&CsrSbApiPort,
|
Status = NtCreatePort(&CsrSbApiPort,
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
sizeof(SB_CONNECTION_INFO),
|
sizeof(SB_CONNECTION_INFO),
|
||||||
sizeof(PSB_API_MSG),
|
sizeof(SB_API_MSG),
|
||||||
32 * sizeof(PSB_API_MSG));
|
32 * sizeof(SB_API_MSG));
|
||||||
if (PortSd) RtlFreeHeap(CsrHeap, 0, PortSd);
|
if (PortSd) RtlFreeHeap(CsrHeap, 0, PortSd);
|
||||||
|
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
|
|
|
@ -771,8 +771,8 @@ CsrSetDirectorySecurity(IN HANDLE ObjectDirectory)
|
||||||
*--*/
|
*--*/
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
CsrServerInitialization(ULONG ArgumentCount,
|
CsrServerInitialization(IN ULONG ArgumentCount,
|
||||||
PCHAR Arguments[])
|
IN PCHAR Arguments[])
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
ULONG i = 0;
|
ULONG i = 0;
|
||||||
|
@ -865,7 +865,7 @@ CsrServerInitialization(ULONG ArgumentCount,
|
||||||
ServerDll = CsrLoadedServerDll[i];
|
ServerDll = CsrLoadedServerDll[i];
|
||||||
|
|
||||||
/* Is it loaded, and does it have per process data? */
|
/* 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 */
|
/* It does, give it part of our allocated heap */
|
||||||
CsrRootProcess->ServerData[i] = ProcessData;
|
CsrRootProcess->ServerData[i] = ProcessData;
|
||||||
|
@ -888,10 +888,10 @@ CsrServerInitialization(ULONG ArgumentCount,
|
||||||
ServerDll = CsrLoadedServerDll[i];
|
ServerDll = CsrLoadedServerDll[i];
|
||||||
|
|
||||||
/* Is it loaded, and does it a callback for new processes? */
|
/* Is it loaded, and does it a callback for new processes? */
|
||||||
if (ServerDll && ServerDll->NewProcessCallback)
|
if ((ServerDll) && (ServerDll->NewProcessCallback))
|
||||||
{
|
{
|
||||||
/* Call the callback */
|
/* Call the callback */
|
||||||
(*ServerDll->NewProcessCallback)(NULL, CsrRootProcess);
|
ServerDll->NewProcessCallback(NULL, CsrRootProcess);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue