ext2 fix bug: bad error checking in ext2_get_inode_block and in ext2_HdRead

git-svn-id: svn://kolibrios.org@3317 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbanoff 2013-03-03 18:42:16 +00:00
parent 3cd1e6838b
commit 7af2e521dd

View File

@ -450,7 +450,7 @@ ext2_get_inode_block:
mov ebx, [ext2_data.ext2_temp_block] mov ebx, [ext2_data.ext2_temp_block]
call ext2_get_block call ext2_get_block
test eax, eax test eax, eax
jz @F ;если не было ошибки jnz @F ;если не было ошибки
mov ecx, [ebx + ecx*4] ;заносим результат mov ecx, [ebx + ecx*4] ;заносим результат
@@: @@:
@ -980,7 +980,7 @@ ext2_HdRead:
inc ecx inc ecx
call ext2_get_inode_block call ext2_get_inode_block
test eax, eax test eax, eax
jz .error_at_finish_block jnz .error_at_finish_block
mov edi, ebx mov edi, ebx
mov eax, ecx mov eax, ecx