Skip to content

Commit

Permalink
[driver] Search for "NOGUIBOOT" instead of "/NOGUIBOOT"
Browse files Browse the repository at this point in the history
In Windows Vista and above, the kernel command line synthesised by the
bootloader omits the slashes traditionally found in the old-style
BOOT.INI file.

Reported-by: Tal Aloni <tal.aloni.il@gmail.com>
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed Oct 10, 2011
1 parent c033056 commit 01c9473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/driver/boottext.c
Expand Up @@ -62,7 +62,7 @@ VOID NTAPI InbvSolidColorFill ( IN ULONG Left, IN ULONG Top, IN ULONG Width,
IN ULONG Height, IN ULONG Color );
VOID NTAPI InbvSetProgressBarSubset ( IN ULONG Floor, IN ULONG Ceiling );

/** Graphical boot is enabled (i.e. /NOGUIBOOT switch is not present) */
/** Graphical boot is enabled (i.e. NOGUIBOOT switch is not present) */
BOOLEAN guiboot_enabled = TRUE;

/** Boot text is enabled */
Expand Down
4 changes: 2 additions & 2 deletions src/driver/sanbootconf.c
Expand Up @@ -99,10 +99,10 @@ static NTSTATUS load_start_options ( VOID ) {
}
DbgPrint ( "SystemStartOptions are %S\n", options );

/* Check for /NOGUIBOOT option */
/* Check for NOGUIBOOT option */
for ( optchar = options ; *optchar ; optchar++ )
*optchar = towupper ( *optchar );
if ( wcsstr ( options, L"/NOGUIBOOT" ) != NULL )
if ( wcsstr ( options, L"NOGUIBOOT" ) != NULL )
guiboot_enabled = FALSE;
DbgPrint ( "Graphical boot is %s\n",
( guiboot_enabled ? "enabled" : "disabled" ) );
Expand Down

0 comments on commit 01c9473

Please sign in to comment.