From 3be8ab2337c3b8ed377e0d4fd8f8b50bf6416f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 12 Nov 2007 09:57:58 +0000 Subject: [PATCH] Small cleanup svn path=/trunk/; revision=30375 --- reactos/boot/freeldr/freeldr/freeldr.c | 3 +-- reactos/boot/freeldr/freeldr/inifile/inifile.c | 3 --- reactos/boot/freeldr/freeldr/ui/noui.c | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/freeldr.c b/reactos/boot/freeldr/freeldr/freeldr.c index 961f1fd9822..278e31af93b 100644 --- a/reactos/boot/freeldr/freeldr/freeldr.c +++ b/reactos/boot/freeldr/freeldr/freeldr.c @@ -32,8 +32,7 @@ VOID BootMain(LPSTR CmdLine) if (!UiInitialize(FALSE)) { - printf("Press any key to reboot.\n"); - MachConsGetCh(); + UiMessageBoxCritical("Unable to initialize UI.\n"); return; } diff --git a/reactos/boot/freeldr/freeldr/inifile/inifile.c b/reactos/boot/freeldr/freeldr/inifile/inifile.c index 2241caf1ba2..b8503c39f5d 100644 --- a/reactos/boot/freeldr/freeldr/inifile/inifile.c +++ b/reactos/boot/freeldr/freeldr/inifile/inifile.c @@ -26,9 +26,6 @@ BOOLEAN IniOpenSection(PCSTR SectionName, ULONG* SectionId) DbgPrint((DPRINT_INIFILE, "IniOpenSection() SectionName = %s\n", SectionName)); - if (!IniFileSectionInitialized) - return FALSE; - // Loop through each section and find the one they want Section = CONTAINING_RECORD(IniFileSectionListHead.Flink, INI_SECTION, ListEntry); while (&Section->ListEntry != &IniFileSectionListHead) diff --git a/reactos/boot/freeldr/freeldr/ui/noui.c b/reactos/boot/freeldr/freeldr/ui/noui.c index cb64878b496..56922eee18e 100644 --- a/reactos/boot/freeldr/freeldr/ui/noui.c +++ b/reactos/boot/freeldr/freeldr/ui/noui.c @@ -43,7 +43,6 @@ VOID NoUiDrawCenteredText(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCST VOID NoUiDrawStatusText(PCSTR StatusText) { - printf(StatusText); } VOID NoUiUpdateDateTime(VOID)