mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 13:18:51 +00:00
[CSRSRV]: Hey Arch, try creating a shared section before mapping it.
svn path=/trunk/; revision=53044
This commit is contained in:
parent
5567f7d702
commit
8fd93a6e30
|
@ -482,12 +482,22 @@ CsrpCreateBNODirectory (int argc, char ** argv, char ** envp)
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
VOID
|
||||||
|
WINAPI
|
||||||
|
BasepFakeStaticServerData(VOID);
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
CsrSrvCreateSharedSection(IN PCHAR ParameterValue);
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* CsrpCreateHeap/3
|
* CsrpCreateHeap/3
|
||||||
*/
|
*/
|
||||||
static NTSTATUS
|
static NTSTATUS
|
||||||
CsrpCreateHeap (int argc, char ** argv, char ** envp)
|
CsrpCreateHeap (int argc, char ** argv, char ** envp)
|
||||||
{
|
{
|
||||||
|
NTSTATUS Status;
|
||||||
DPRINT("CSR: %s called\n", __FUNCTION__);
|
DPRINT("CSR: %s called\n", __FUNCTION__);
|
||||||
|
|
||||||
CsrssApiHeap = RtlCreateHeap(HEAP_GROWABLE,
|
CsrssApiHeap = RtlCreateHeap(HEAP_GROWABLE,
|
||||||
|
@ -500,6 +510,12 @@ CsrpCreateHeap (int argc, char ** argv, char ** envp)
|
||||||
{
|
{
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Status = CsrSrvCreateSharedSection("");
|
||||||
|
ASSERT(Status == STATUS_SUCCESS);
|
||||||
|
|
||||||
|
BasepFakeStaticServerData();
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue