diff --git a/programs/develop/libraries/libs-dev/.test/001/test001.asm b/programs/develop/libraries/libs-dev/.test/001/test001.asm index b7c7cd6670..7090a683c4 100644 --- a/programs/develop/libraries/libs-dev/.test/001/test001.asm +++ b/programs/develop/libraries/libs-dev/.test/001/test001.asm @@ -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',\ diff --git a/programs/develop/libraries/libs-dev/libini/libini_p.asm b/programs/develop/libraries/libs-dev/libini/libini_p.asm index d358dae76c..db6f2737ed 100644 --- a/programs/develop/libraries/libs-dev/libini/libini_p.asm +++ b/programs/develop/libraries/libs-dev/libini/libini_p.asm @@ -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]