Fixed creation of paging file in SmPagingFilesQueryRoutine.

svn path=/trunk/; revision=2987
This commit is contained in:
Hartmut Birr 2002-05-27 18:24:44 +00:00
parent 5d9e939c65
commit a6f55d8cf7

View file

@ -1,4 +1,4 @@
/* $Id: init.c,v 1.36 2002/05/24 18:07:56 ekohl Exp $
/* $Id: init.c,v 1.37 2002/05/27 18:24:44 hbirr Exp $
*
* init.c - Session Manager initialization
*
@ -397,9 +397,6 @@ SmPagingFilesQueryRoutine(PWSTR ValueName,
return(STATUS_SUCCESS);
}
RtlInitUnicodeString(&FileName,
(PWSTR)ValueData);
/*
* FIXME:
* read initial and maximum size from the registry or use default values
@ -407,6 +404,14 @@ SmPagingFilesQueryRoutine(PWSTR ValueName,
* Format: "<path>[ <initial_size>[ <maximum_size>]]"
*/
if (!RtlDosPathNameToNtPathName_U ((LPWSTR)ValueData,
&FileName,
NULL,
NULL))
{
return (STATUS_SUCCESS);
}
InitialSize.QuadPart = 50 * 4096;
MaximumSize.QuadPart = 80 * 4096;
@ -415,6 +420,8 @@ SmPagingFilesQueryRoutine(PWSTR ValueName,
&MaximumSize,
0);
RtlFreeUnicodeString(&FileName);
return(STATUS_SUCCESS);
}