mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-25 02:09:36 +03:00
libini: abort infinite loop on write error
git-svn-id: svn://kolibrios.org@1568 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
baf8ec007b
commit
5990ba6772
@ -396,7 +396,7 @@ import libgfx, \
|
||||
gfx.open ,'gfx_open',\
|
||||
gfx.close ,'gfx_close',\
|
||||
gfx.pen.color ,'gfx_pen_color',\
|
||||
gfx.brush.color ,'gfx_brush.color',\
|
||||
gfx.brush.color ,'gfx_brush_color',\
|
||||
gfx.pixel ,'gfx_pixel',\
|
||||
gfx.move.to ,'gfx_move_to',\
|
||||
gfx.line.to ,'gfx_line_to',\
|
||||
|
@ -278,8 +278,15 @@ endl
|
||||
neg eax
|
||||
sub eax, ecx
|
||||
invoke file.seek, ebx, eax, SEEK_CUR
|
||||
push ecx
|
||||
invoke file.write, ebx, [buf], ecx
|
||||
jmp @b
|
||||
pop ecx
|
||||
cmp eax, ecx
|
||||
jz @b
|
||||
.fail:
|
||||
or eax, -1
|
||||
pop ecx ebx
|
||||
ret
|
||||
.done:
|
||||
mov eax, [_delta]
|
||||
neg eax
|
||||
@ -290,10 +297,6 @@ endl
|
||||
pop ecx ebx
|
||||
.skip:
|
||||
ret
|
||||
.fail:
|
||||
or eax, -1
|
||||
pop ecx ebx
|
||||
ret
|
||||
|
||||
.down:
|
||||
neg [_delta]
|
||||
|
Loading…
Reference in New Issue
Block a user