Fixed major issue in libini (set_* affected) connected with wrong parameters to file.seek

Commented out wildcards test from test001 (function is no longer exported thus can't be tested)

git-svn-id: svn://kolibrios.org@919 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld)
2008-11-11 20:05:59 +00:00
parent 5847ff53fc
commit 1af612e4d2
3 changed files with 19 additions and 18 deletions

View File

@@ -102,7 +102,7 @@ endl
lea ebx, [f]
mov [f_addr], ebx
invoke file.seek, [f.fh], SEEK_SET, 0
invoke file.seek, [f.fh], 0, SEEK_SET
stdcall libini._.preload_block, [f_addr]
.next_section:
@@ -382,7 +382,6 @@ endl
jnz .create_key
.modify_key:
stdcall libini._.get_value_length, [f_addr]
sub eax, [_buf_len]
stdcall libini._.shift_content, [f_addr], eax
@@ -391,7 +390,7 @@ endl
invoke file.tell, [f.fh]
sub eax, [f.cnt]
; dec eax
invoke file.seek, [f.fh], SEEK_SET, eax
invoke file.seek, [f.fh], eax, SEEK_SET
invoke file.write, [f.fh], [_buffer], [_buf_len]
pop edi esi ebx