https://git.reactos.org/?p=reactos.git;a=commitdiff;h=167bffd80fb8189de3400…
commit 167bffd80fb8189de34007d78e697af4444cf533
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Dec 16 12:48:56 2018 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Dec 16 12:49:59 2018 +0100
[NTOSKRNL] Add and call the CmpSaveBootControlSet() stub.
---
ntoskrnl/config/cmcontrl.c | 8 ++++++++
ntoskrnl/config/ntapi.c | 4 ++--
ntoskrnl/include/internal/cm.h | 6 ++++++
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/config/cmcontrl.c b/ntoskrnl/config/cmcontrl.c
index 81d8086cb1..54d4949979 100644
--- a/ntoskrnl/config/cmcontrl.c
+++ b/ntoskrnl/config/cmcontrl.c
@@ -262,3 +262,11 @@ CmGetSystemControlValues(IN PVOID SystemHiveData,
PsDefaultThreadLocaleId = PsDefaultSystemLocaleId;
PsDefaultUILanguageId = PsInstallUILanguageId;
}
+
+NTSTATUS
+NTAPI
+CmpSaveBootControlSet(IN USHORT ControlSet)
+{
+ DPRINT1("CmpSaveBootControlSet(%lu)\n", ControlSet);
+ return STATUS_SUCCESS;
+}
diff --git a/ntoskrnl/config/ntapi.c b/ntoskrnl/config/ntapi.c
index f3137ce861..824992fe75 100644
--- a/ntoskrnl/config/ntapi.c
+++ b/ntoskrnl/config/ntapi.c
@@ -1322,8 +1322,8 @@ NtInitializeRegistry(IN USHORT Flag)
Flag -= CM_BOOT_FLAG_ACCEPTED;
if (Flag)
{
- /* FIXME: Save the last known good boot */
- //Status = CmpSaveBootControlSet(Flag);
+ /* Save the last known good boot */
+ Status = CmpSaveBootControlSet(Flag);
/* Notify HAL */
HalEndOfBoot();
diff --git a/ntoskrnl/include/internal/cm.h b/ntoskrnl/include/internal/cm.h
index c2900b2314..76fc5b9d1a 100644
--- a/ntoskrnl/include/internal/cm.h
+++ b/ntoskrnl/include/internal/cm.h
@@ -1177,6 +1177,12 @@ CmGetSystemControlValues(
IN PCM_SYSTEM_CONTROL_VECTOR ControlVector
);
+NTSTATUS
+NTAPI
+CmpSaveBootControlSet(
+ IN USHORT ControlSet
+);
+
//
// Hardware Configuration Routines
//