From 17dcdac5d8f522c1f888550dde763598f8277e84 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 18 Apr 2007 14:58:48 +0000 Subject: [PATCH] fixed bug in FAT short names generation git-svn-id: svn://kolibrios.org@466 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/rd.inc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/kernel/trunk/blkdev/rd.inc b/kernel/trunk/blkdev/rd.inc index fd9e35594..3d7626cf2 100644 --- a/kernel/trunk/blkdev/rd.inc +++ b/kernel/trunk/blkdev/rd.inc @@ -1339,11 +1339,8 @@ fat_next_short_name: jmp @b .found: inc byte [edi] -.succ: - pop edi - popad - clc - ret + add dword [esp], 8 + jmp .zerorest .break: jecxz .noplace inc edi @@ -1354,7 +1351,11 @@ fat_next_short_name: cmp al, ' ' mov al, '0' jnz @b - jmp .succ +.succ: + pop edi + popad + clc + ret .noplace: dec edi cmp edi, [esp] @@ -1365,6 +1366,7 @@ fat_next_short_name: inc edi @@: mov byte [edi], '0' +.zerorest: inc edi cmp edi, [esp] jb @b