mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Allow "boot hd:,%BOOT" to work again (and thus Quik).
Signed-off-by: Laurent Vivier <Laurent@vivier.eu> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@577 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -79,7 +79,7 @@ dlabel_open( dlabel_info_t *di )
|
||||
/* argument format: parnum,filename */
|
||||
|
||||
s = path;
|
||||
filename = NULL;
|
||||
filename = "";
|
||||
if( *s == '-' || isdigit(*s) ||
|
||||
(*s >= 'a' && *s < ('a' + 8)
|
||||
&& (*(s + 1) == ',' || *(s + 1) == '\0'))) {
|
||||
@@ -146,7 +146,7 @@ dlabel_open( dlabel_info_t *di )
|
||||
push_str( filename );
|
||||
PUSH_ph( ph );
|
||||
fword("interpose");
|
||||
} else if (filename && strcmp(filename, "%BOOT") != 0) {
|
||||
} else if (*filename && strcmp(filename, "%BOOT") != 0) {
|
||||
goto out;
|
||||
}
|
||||
success = 1;
|
||||
|
||||
Reference in New Issue
Block a user