https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c188821f8ba522e4e6ddf9d27dbcc6defeee4fd9

commit c188821f8ba522e4e6ddf9d27dbcc6defeee4fd9
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Tue Sep 7 22:25:34 2021 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Tue Sep 7 22:25:37 2021 +0200

    [SETUPLIB] Default to "ReactOS (Debug)" boot entry on debug builds, instead 
of "ReactOS".
---
 base/setup/lib/bootsup.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/base/setup/lib/bootsup.c b/base/setup/lib/bootsup.c
index 1d03d07e2d0..58c17e79bed 100644
--- a/base/setup/lib/bootsup.c
+++ b/base/setup/lib/bootsup.c
@@ -126,21 +126,20 @@ CreateFreeLoaderReactOSEntries(
 #endif
 
 
-#if DBG
+    /* DefaultOS=ReactOS */
+#if DBG && !defined(_WINKD_)
     if (IsUnattendedSetup)
     {
-        /* DefaultOS=ReactOS */
-#ifndef _WINKD_
         BootOptions.CurrentBootEntryKey = MAKESTRKEY(L"ReactOS_KdSerial");
-#else
-        BootOptions.CurrentBootEntryKey = MAKESTRKEY(L"ReactOS_Debug");
-#endif
     }
     else
 #endif
     {
-        /* DefaultOS=ReactOS */
+#if DBG
+        BootOptions.CurrentBootEntryKey = MAKESTRKEY(L"ReactOS_Debug");
+#else
         BootOptions.CurrentBootEntryKey = MAKESTRKEY(L"ReactOS");
+#endif
     }
 
 #if DBG

Reply via email to