From c188821f8ba522e4e6ddf9d27dbcc6defeee4fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Tue, 7 Sep 2021 22:25:34 +0200 Subject: [PATCH] [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