forked from KolibriOS/kolibrios
fixed bug with coping file with size divisible by 4Kb.
git-svn-id: svn://kolibrios.org@68 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d3d3fc15c6
commit
09f8067f56
@ -185,8 +185,8 @@ copy_file:
|
|||||||
.ok_memory:
|
.ok_memory:
|
||||||
|
|
||||||
; save number of blocks to source_info
|
; save number of blocks to source_info
|
||||||
shr ebx,9 ; divide by 512
|
add ebx,511
|
||||||
inc ebx ; blocks++
|
shr ebx,9 ; round up to 512 boundary
|
||||||
mov [source_info.blocks],ebx
|
mov [source_info.blocks],ebx
|
||||||
; read the source file
|
; read the source file
|
||||||
mov eax,58
|
mov eax,58
|
||||||
|
Loading…
Reference in New Issue
Block a user