Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 265 → Rev 264

/kernel/trunk/fs/ntfs.inc
284,8 → 284,6
ntfs_cur_size dd ? ; in sectors
ntfs_cur_buf dd ?
ntfs_cur_read dd ? ; [output]
ntfs_bCanContinue db ?
rb 3
 
ntfs_attrlist_buf rb 0x400
ntfs_bitmap_buf rb 0x400
298,7 → 296,6
ntfs_cur_tail dd ?
endg
 
 
ntfs_read_attr:
; in: global variables
; out: [ntfs_cur_read]
445,19 → 442,9
; c) Check for required offset and length
mov ecx, [ntfs_attr_offs]
jecxz .noattr
push [ntfs_cur_size]
push [ntfs_cur_read]
call .doreadattr
pop edx
pop eax
jc @f
cmp [ntfs_bCanContinue], 0
jz @f
sub edx, [ntfs_cur_read]
neg edx
shr edx, 9
sub eax, edx
mov [ntfs_cur_size], eax
cmp [ntfs_cur_size], 0
jnz .not_in_cur
@@:
popad
626,7 → 613,6
jmp .scanliststart
 
.doreadattr:
mov [ntfs_bCanContinue], 0
cmp byte [ecx+8], 0
jnz .nonresident
mov eax, [ecx+10h] ; length
738,8 → 724,6
inc [ntfs_cur_offs]
loop @b
pop ecx
xor eax, eax
xor edx, edx
cmp [ntfs_cur_size], 0
jnz .readloop
add esp, 10h
755,7 → 739,6
jmp .errret
.break:
add esp, 10h ; CF=0
mov [ntfs_bCanContinue], 1
ret
 
ntfs_read_file_record: