fix the problem that savedefault doesn't work with Stage 1.5.

This commit is contained in:
okuji committed 2001-02-02 13:31:03 +00:00
1 parent 9417ebb550
commit 00865a8027
11 files changed
+55 -44

No files matched your search

+1 -5
View File
@@ -1,6 +1,6 @@
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -268,16 +268,12 @@ minix_read (char *buf, int len)
if (size > len)
size = len;
#ifndef STAGE1_5
disk_read_func = disk_read_hook;
#endif /* STAGE1_5 */
devread (map * (BLOCK_SIZE / DEV_BSIZE),
offset, size, buf);
#ifndef STAGE1_5
disk_read_func = NULL;
#endif /* STAGE1_5 */
buf += size;
len -= size;