PPEB Peb = NtCurrentPeb();
/* ReactOS Hackssss */
- ParameterValue = "1024,3072,512";
Status = NtQuerySystemInformation(SystemBasicInformation,
&CsrNtSysInfo,
sizeof(SYSTEM_BASIC_INFORMATION),
}
/* 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);
/* 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;
}
- Status = CsrSrvCreateSharedSection("");
+ Status = CsrSrvCreateSharedSection("1024,3072,512");
+ DPRINT1("Status: %lx\n", Status);
ASSERT(Status == STATUS_SUCCESS);
BasepFakeStaticServerData();