Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Patch for DOSLFN 0.40e (Users)

posted by Japheth Homepage, Germany (South), 03.09.2011, 08:18

Hello,

as some of you are probably aware of, DOSLFN 0.40e from Jason Hood has (a) serious bug(s) that may cause corruption of directory entries.

I was able to track (one of) the bug(s) down. After the bug was fixed, I didn't experience corruptions anymore as of yet, but there is no guarantee. That's why I post the fix here: you should try it and report your experiences.

Also, the fix is for the source code only, because DOSLFN is copyrighted software - you will have to assemble and link the source.

1. change DOSLFN.ASM

@@pop_open_only:
        pop     ax
if 1
;--- japheth: BX is not set to a DIRENT here!
;--- so we cant copy anything to/from [bx] as it's done below.
        call Copy_FCB_8P3_from_FCB_to_DI
        jmp SFN_6C_CallOld      ;just call old int 21h, ax=6c00h
endif
@@open_only:


2. assemble and link DOSLFN.ASM to DOSLFN.COM:

tasm -m5 -la doslfn.asm
tlink -3 -t -s doslfn.obj

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 386 users online (0 registered, 386 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum