fix: dans la fonction "mbloadsection" : - bogue corrigé lors du chargement d'un fichier CE avec sections vides - Utilisation d'un pointeur sur le segment plutôt que le bloc lui même en tant que paramètre

This commit is contained in:
Nicolas Hordé 2007-03-18 20:44:40 +00:00
parent d61a193186
commit cccc113a35
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,6 @@ PROC mbloadsection FAR
USES ax,bx,cx,si,di,ds,es USES ax,bx,cx,si,di,ds,es
LOCAL @@toresov:word:60 LOCAL @@toresov:word:60
mov ax,[@blocks] mov ax,[@blocks]
inc ax
inc ax
mov es,ax mov es,ax
mov ds,ax mov ds,ax
cmp [word ptr 0],"EC" cmp [word ptr 0],"EC"
@ -181,6 +179,8 @@ PROC mbloadsection FAR
lea si,[@@toresov] lea si,[@@toresov]
mov [word ptr ss:si],0FFFFh mov [word ptr ss:si],0FFFFh
mov bx,[ds:exe.sections] mov bx,[ds:exe.sections]
cmp bx,0
je @@finishloading
@@loading: @@loading:
cmp [dword ptr bx],0 cmp [dword ptr bx],0
je @@finishloading je @@finishloading