From a632fb94b0dae4f9aedab49fc7029ff49826491a Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 2 Sep 2011 19:03:49 +0000 Subject: [PATCH] fix virtual root enumeration broken in r2129 git-svn-id: svn://kolibrios.org@2145 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/disk.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/blkdev/disk.inc b/kernel/trunk/blkdev/disk.inc index dc6e0e7381..7e7c814beb 100644 --- a/kernel/trunk/blkdev/disk.inc +++ b/kernel/trunk/blkdev/disk.inc @@ -1225,7 +1225,7 @@ lock inc [edx+DISK.MediaRefCount] ; out: eax = 0 => no more items ; eax != 0 => buffer pointed to by edi contains name of item dyndisk_enum_root: - push ebx ; save register used in file_system_lfn + push edx ; save register used in file_system_lfn mov ecx, disk_list_mutex ; it will be useful ; 1. If this is the first call, acquire the mutex and initialize. test eax, eax @@ -1248,11 +1248,11 @@ dyndisk_enum_root: jnz @b pop esi eax ; 5. Return with eax = item. - pop ebx ; restore register used in file_system_lfn + pop edx ; restore register used in file_system_lfn ret .last: ; 6. Release the mutex and return with eax = 0. call mutex_unlock xor eax, eax - pop ebx ; restore register used in file_system_lfn + pop edx ; restore register used in file_system_lfn ret