Author: ion
Date: Wed Aug 3 15:04:21 2011
New Revision: 53049
URL:
http://svn.reactos.org/svn/reactos?rev=53049&view=rev
Log:
[CSRSRV]: Hey Arch, try creating a shared section before mapping it.
Modified:
trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
trunk/reactos/subsystems/win32/csrss/csrsrv/init.c
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csr…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] Wed Aug 3
15:04:21 2011
@@ -153,7 +153,6 @@
PPEB Peb = NtCurrentPeb();
/* ReactOS Hackssss */
- ParameterValue = "1024,3072,512";
Status = NtQuerySystemInformation(SystemBasicInformation,
&CsrNtSysInfo,
sizeof(SYSTEM_BASIC_INFORMATION),
@@ -175,7 +174,7 @@
}
/* Make sure it's valid */
- if (!*SizeValue) return(STATUS_INVALID_PARAMETER);
+ if (!*SizeValue) return STATUS_INVALID_PARAMETER;
/* Convert it to an integer */
Status = RtlCharToInteger(SizeValue, 0, &Size);
@@ -184,6 +183,7 @@
/* Multiply by 1024 entries and round to page size */
#define ROUND_UP(n,size) (((ULONG)(n) + (size - 1)) & ~(size - 1)) // hax
CsrSrvSharedSectionSize = ROUND_UP(Size * 1024, CsrNtSysInfo.PageSize);
+ DPRINT1("Size: %lx\n", CsrSrvSharedSectionSize);
/* Create the Secion */
SectionSize.LowPart = CsrSrvSharedSectionSize;
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 15:04:21
2011
@@ -512,7 +512,8 @@
}
- Status = CsrSrvCreateSharedSection("");
+ Status = CsrSrvCreateSharedSection("1024,3072,512");
+ DPRINT1("Status: %lx\n", Status);
ASSERT(Status == STATUS_SUCCESS);
BasepFakeStaticServerData();