https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2ee150c374d16beb94b2a…
commit 2ee150c374d16beb94b2aa966ec3740db674f51a
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Fri May 11 05:57:10 2018 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Fri Aug 17 14:03:59 2018 +0200
[REACTOS] Warn if not using RosBE custom CMake
Better be explicit immediately, than fail later without a clue.
Thanks to Yuntian Zhang for initial code, adapted by me.
CORE-14607
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b6235d9cb..90e76be2f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,10 @@
cmake_minimum_required(VERSION 3.2.1)
cmake_policy(VERSION 3.2.1)
+if(NOT CMAKE_VERSION MATCHES "ReactOS")
+ message(WARNING "Building with \"${CMAKE_COMMAND}\", which is not the custom CMake included in RosBE, might cause build issues...")
+endif()
+
# Don't escape preprocessor definition values added via add_definitions
cmake_policy(SET CMP0005 OLD)
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8281f4baa6f8422a0c5cb…
commit 8281f4baa6f8422a0c5cb08cbaf059fea07ea016
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Thu Aug 16 18:49:55 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Thu Aug 16 18:49:55 2018 +0200
[NTOSKRNL] Add a check commented out for now.
It's to be enabled once page file handling is moved to ARM3
---
ntoskrnl/mm/pagefile.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/ntoskrnl/mm/pagefile.c b/ntoskrnl/mm/pagefile.c
index 9019beef90..14c558e9f9 100644
--- a/ntoskrnl/mm/pagefile.c
+++ b/ntoskrnl/mm/pagefile.c
@@ -690,6 +690,17 @@ NtCreatePagingFile(IN PUNICODE_STRING FileName,
/* DACL is no longer needed, free it */
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 */
Status = ZwSetInformationFile(FileHandle,
&IoStatus,