diff --git a/docs/history.txt b/docs/history.txt index 0760898..2fdf27e 100644 --- a/docs/history.txt +++ b/docs/history.txt @@ -4,6 +4,8 @@ * ran source code .c and .h files through "indent" * fixed new printf bug * removed some duplicate documents ++ Changes Victor & Bart + * fixed sys.c fat32 detection bug (offset 0x10, not 0x2c) 2001 Nov 17 - Build 2025b -------- Bart Oldeman (bart@dosemu.org) + Changes Tom diff --git a/drivers/makefile b/drivers/makefile index 17f2805..8a88e63 100644 --- a/drivers/makefile +++ b/drivers/makefile @@ -42,7 +42,7 @@ clobber: clean -$(RM) device.lib status.me ..\lib\device.lib clean: - -$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.cod + -$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.cod *.err device.lib : $(OBJS) -$(RM) device.lib diff --git a/kernel/makefile b/kernel/makefile index 4e4316b..f0b22fe 100644 --- a/kernel/makefile +++ b/kernel/makefile @@ -100,7 +100,7 @@ clobber: clean -$(RM) kernel.exe kernel.sys status.me clean: - -$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.cod + -$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.cod *.err # XXX: This is a very ugly way of linking the kernel, forced upon us by the # inability of Turbo `make' 2.0 to perform command line redirection. -- ror4 diff --git a/sys/makefile b/sys/makefile index 08ba330..14c11ac 100644 --- a/sys/makefile +++ b/sys/makefile @@ -49,7 +49,7 @@ clobber: clean -$(RM) bin2c.com sys.com b_fat12.h b_fat16.h b_fat32.h clean: - -$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.las *.cod status.me + -$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.las *.cod *.err status.me # *Individual File Dependencies* bin2c.obj: bin2c.c diff --git a/sys/sys.c b/sys/sys.c index 37f52a8..e117a17 100644 --- a/sys/sys.c +++ b/sys/sys.c @@ -431,7 +431,7 @@ VOID put_boot(COUNT drive, BYTE * bsFile, BOOL both) } else { - if (*(unsigned long *)(x + 0x2c) /* total number of clusters */ + if (*(unsigned long *)(x + 0x10) /* total number of clusters */ > (unsigned)65526l) { fs = 32; diff --git a/utils/makefile b/utils/makefile index 20b628b..584fe6e 100644 --- a/utils/makefile +++ b/utils/makefile @@ -15,5 +15,5 @@ clobber: clean $(RM) bin2c.com exeflat.exe patchobj.exe clean: - $(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.las *.cod status.me + $(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.las *.cod *.err status.me