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,7 +1,7 @@
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 1996 Erich Boleyn <erich@uruk.org>
* Copyright (C) 2000 Free Software Foundation, Inc.
* Copyright (C) 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
@@ -244,15 +244,11 @@ fat_read (char *buf, int len)
if (size > len)
size = len;
#ifndef STAGE1_5
disk_read_func = disk_read_hook;
#endif /* STAGE1_5 */
devread(sector, offset, size, buf);
#ifndef STAGE1_5
disk_read_func = NULL;
#endif /* STAGE1_5 */
len -= size;
buf += size;