Changed the values for the page file size from the registry from Byte to MByte.

svn path=/trunk/; revision=3348
This commit is contained in:
Hartmut Birr 2002-08-17 15:31:03 +00:00
parent e0c35e0076
commit d7f19d41ea

View file

@ -1,4 +1,4 @@
/* $Id: init.c,v 1.40 2002/08/14 20:58:39 dwelch Exp $
/* $Id: init.c,v 1.41 2002/08/17 15:31:03 hbirr Exp $
*
* init.c - Session Manager initialization
*
@ -404,11 +404,13 @@ SmPagingFilesQueryRoutine(PWSTR ValueName,
if ((p = wcschr(ValueData, ' ')) != NULL)
{
*p = L'\0';
InitialSize.QuadPart = wcstoul(p + 1, &p, 0);
InitialSize.QuadPart = wcstoul(p + 1, &p, 0) * 256 * 4096;
if (*p == ' ')
{
MaximumSize.QuadPart = wcstoul(p + 1, NULL, 0);
MaximumSize.QuadPart = wcstoul(p + 1, NULL, 0) * 256 * 4096;
}
else
MaximumSize = InitialSize;
}
else
{