Author: ion
Date: Wed Aug 3 06:18:42 2011
New Revision: 53044
URL:
http://svn.reactos.org/svn/reactos?rev=53044&view=rev
Log:
[CSRSRV]: Hey Arch, try creating a shared section before mapping it.
Modified:
trunk/reactos/subsystems/win32/csrss/csrsrv/init.c
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csr…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrsrv/init.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrsrv/init.c [iso-8859-1] Wed Aug 3 06:18:42
2011
@@ -482,12 +482,22 @@
return Status;
}
+
+VOID
+WINAPI
+BasepFakeStaticServerData(VOID);
+
+NTSTATUS
+NTAPI
+CsrSrvCreateSharedSection(IN PCHAR ParameterValue);
+
/**********************************************************************
* CsrpCreateHeap/3
*/
static NTSTATUS
CsrpCreateHeap (int argc, char ** argv, char ** envp)
{
+ NTSTATUS Status;
DPRINT("CSR: %s called\n", __FUNCTION__);
CsrssApiHeap = RtlCreateHeap(HEAP_GROWABLE,
@@ -500,6 +510,12 @@
{
return STATUS_UNSUCCESSFUL;
}
+
+
+ Status = CsrSrvCreateSharedSection("");
+ ASSERT(Status == STATUS_SUCCESS);
+
+ BasepFakeStaticServerData();
return STATUS_SUCCESS;
}