From cccc113a351189283eb19cd368456fbb08198229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Sun, 18 Mar 2007 20:44:40 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20dans=20la=20fonction=20"mbloadsection"?= =?UTF-8?q?=20:=20-=20bogue=20corrig=C3=A9=20lors=20du=20chargement=20d'un?= =?UTF-8?q?=20fichier=20CE=20avec=20sections=20vides=20-=20Utilisation=20d?= =?UTF-8?q?'un=20pointeur=20sur=20le=20segment=20plut=C3=B4t=20que=20le=20?= =?UTF-8?q?bloc=20lui=20m=C3=AAme=20en=20tant=20que=20param=C3=A8tre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/mcb.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noyau/mcb.asm b/noyau/mcb.asm index 078ae19..ed0b1ce 100644 --- a/noyau/mcb.asm +++ b/noyau/mcb.asm @@ -172,8 +172,6 @@ PROC mbloadsection FAR USES ax,bx,cx,si,di,ds,es LOCAL @@toresov:word:60 mov ax,[@blocks] - inc ax - inc ax mov es,ax mov ds,ax cmp [word ptr 0],"EC" @@ -181,6 +179,8 @@ PROC mbloadsection FAR lea si,[@@toresov] mov [word ptr ss:si],0FFFFh mov bx,[ds:exe.sections] + cmp bx,0 + je @@finishloading @@loading: cmp [dword ptr bx],0 je @@finishloading