mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[NTOSKRNL] Add a check commented out for now.
It's to be enabled once page file handling is moved to ARM3
This commit is contained in:
parent
7f0ad923d2
commit
8281f4baa6
1 changed files with 11 additions and 0 deletions
|
@ -690,6 +690,17 @@ NtCreatePagingFile(IN PUNICODE_STRING FileName,
|
||||||
/* DACL is no longer needed, free it */
|
/* DACL is no longer needed, free it */
|
||||||
ExFreePoolWithTag(Dacl, 'lcaD');
|
ExFreePoolWithTag(Dacl, 'lcaD');
|
||||||
|
|
||||||
|
/* FIXME: To enable once page file managment is moved to ARM3 */
|
||||||
|
#if 0
|
||||||
|
/* Check we won't overflow commit limit with the page file */
|
||||||
|
if (MmTotalCommitLimitMaximum + (SafeMaximumSize.QuadPart >> PAGE_SHIFT) <= MmTotalCommitLimitMaximum)
|
||||||
|
{
|
||||||
|
ZwClose(FileHandle);
|
||||||
|
ExFreePoolWithTag(Buffer, TAG_MM);
|
||||||
|
return STATUS_INVALID_PARAMETER_3;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Set its end of file to minimal size */
|
/* Set its end of file to minimal size */
|
||||||
Status = ZwSetInformationFile(FileHandle,
|
Status = ZwSetInformationFile(FileHandle,
|
||||||
&IoStatus,
|
&IoStatus,
|
||||||
|
|
Loading…
Reference in a new issue