forked from KolibriOS/kolibrios
Fixed work with CD broken in svn.521
git-svn-id: svn://kolibrios.org@533 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
827172f6c0
commit
3cd0677d7e
@ -192,6 +192,7 @@ TASK_DATA equ (OS_BASE+0x0003020)
|
||||
TASK_EVENT equ (OS_BASE+0x0003020)
|
||||
|
||||
mouseunder equ (OS_BASE+0x0006900)
|
||||
CDDataBuf equ (OS_BASE+0x0007000)
|
||||
FLOPPY_BUFF equ (OS_BASE+0x0008000)
|
||||
ACTIVE_PROC_STACK equ (OS_BASE+0x000A400) ;unused
|
||||
idts equ (OS_BASE+0x000B100)
|
||||
|
@ -15,8 +15,6 @@ IDE_Channel_1 db 0
|
||||
IDE_Channel_2 db 0
|
||||
endg
|
||||
|
||||
CDDataBuf equ 0x7000
|
||||
|
||||
reserve_cd:
|
||||
|
||||
cli
|
||||
@ -533,8 +531,10 @@ cd_find_lfn:
|
||||
call ReadCDWRetr ; ÷èòàåì ñåêòîð äèðåêòîðèè
|
||||
cmp [DevErrorCode],0
|
||||
jne .access_denied
|
||||
call cd_find_name_in_buffer
|
||||
jnc .found
|
||||
push ebp
|
||||
call cd_find_name_in_buffer
|
||||
pop ebp
|
||||
jnc .found
|
||||
sub eax,2048
|
||||
; äèðåêòîðèÿ çàêîí÷èëàñü?
|
||||
cmp eax,0
|
||||
@ -571,9 +571,9 @@ cd_find_name_in_buffer:
|
||||
mov [cd_current_pointer_of_input_2],CDDataBuf
|
||||
.start:
|
||||
call cd_get_name
|
||||
jc .not_found
|
||||
jc .not_found
|
||||
call cd_compare_name
|
||||
jc .start
|
||||
jc .start
|
||||
.found:
|
||||
clc
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user