mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fixed creation of paging file in SmPagingFilesQueryRoutine.
svn path=/trunk/; revision=2987
This commit is contained in:
parent
5d9e939c65
commit
a6f55d8cf7
1 changed files with 11 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue