forked from KolibriOS/kolibrios
fixed error handler in FAT32 code
git-svn-id: svn://kolibrios.org@1124 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3bbe7b485a
commit
a7e3c97cc5
@ -1062,14 +1062,6 @@ fs_HdRead:
|
|||||||
mov eax, ERROR_ACCESS_DENIED
|
mov eax, ERROR_ACCESS_DENIED
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.noaccess_3:
|
|
||||||
add esp,4
|
|
||||||
.noaccess_1:
|
|
||||||
add esp,4
|
|
||||||
.noaccess_4:
|
|
||||||
add esp,4*5
|
|
||||||
jmp .noaccess_2
|
|
||||||
|
|
||||||
@@:
|
@@:
|
||||||
call hd_find_lfn
|
call hd_find_lfn
|
||||||
jnc .found
|
jnc .found
|
||||||
@ -1133,9 +1125,9 @@ fs_HdRead:
|
|||||||
push ebx
|
push ebx
|
||||||
mov ebx, edx
|
mov ebx, edx
|
||||||
call hd_read
|
call hd_read
|
||||||
|
pop ebx
|
||||||
cmp [hd_error],0
|
cmp [hd_error],0
|
||||||
jne .noaccess_1
|
jne .noaccess_1
|
||||||
pop ebx
|
|
||||||
add edx, 512
|
add edx, 512
|
||||||
sub ecx, 512
|
sub ecx, 512
|
||||||
jmp .skip
|
jmp .skip
|
||||||
@ -1144,11 +1136,10 @@ fs_HdRead:
|
|||||||
push eax ebx
|
push eax ebx
|
||||||
mov ebx, buffer
|
mov ebx, buffer
|
||||||
call hd_read
|
call hd_read
|
||||||
cmp [hd_error],0
|
|
||||||
jne .noaccess_3
|
|
||||||
|
|
||||||
mov eax, ebx
|
mov eax, ebx
|
||||||
pop ebx
|
pop ebx
|
||||||
|
cmp [hd_error],0
|
||||||
|
jne .noaccess_3
|
||||||
add eax, ebx
|
add eax, ebx
|
||||||
push ecx
|
push ecx
|
||||||
add ecx, ebx
|
add ecx, ebx
|
||||||
@ -1171,9 +1162,14 @@ fs_HdRead:
|
|||||||
mov eax, [cluster_tmp]
|
mov eax, [cluster_tmp]
|
||||||
call get_FAT
|
call get_FAT
|
||||||
cmp [hd_error],0
|
cmp [hd_error],0
|
||||||
jne .noaccess_4
|
jne .noaccess_1
|
||||||
|
|
||||||
jmp .new_cluster
|
jmp .new_cluster
|
||||||
|
.noaccess_3:
|
||||||
|
pop eax
|
||||||
|
.noaccess_1:
|
||||||
|
pop eax
|
||||||
|
push 11
|
||||||
.done:
|
.done:
|
||||||
mov ebx, edx
|
mov ebx, edx
|
||||||
pop eax edx ecx edi
|
pop eax edx ecx edi
|
||||||
|
Loading…
Reference in New Issue
Block a user