mirror of
https://github.com/reactos/reactos.git
synced 2025-07-14 00:14:12 +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
|
* init.c - Session Manager initialization
|
||||||
*
|
*
|
||||||
|
@ -397,9 +397,6 @@ SmPagingFilesQueryRoutine(PWSTR ValueName,
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
RtlInitUnicodeString(&FileName,
|
|
||||||
(PWSTR)ValueData);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME:
|
* FIXME:
|
||||||
* read initial and maximum size from the registry or use default values
|
* 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>]]"
|
* Format: "<path>[ <initial_size>[ <maximum_size>]]"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!RtlDosPathNameToNtPathName_U ((LPWSTR)ValueData,
|
||||||
|
&FileName,
|
||||||
|
NULL,
|
||||||
|
NULL))
|
||||||
|
{
|
||||||
|
return (STATUS_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
InitialSize.QuadPart = 50 * 4096;
|
InitialSize.QuadPart = 50 * 4096;
|
||||||
MaximumSize.QuadPart = 80 * 4096;
|
MaximumSize.QuadPart = 80 * 4096;
|
||||||
|
|
||||||
|
@ -415,6 +420,8 @@ SmPagingFilesQueryRoutine(PWSTR ValueName,
|
||||||
&MaximumSize,
|
&MaximumSize,
|
||||||
0);
|
0);
|
||||||
|
|
||||||
|
RtlFreeUnicodeString(&FileName);
|
||||||
|
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue