forked from KolibriOS/kolibrios
libini: Fix ini.del_section to not lose the last byte of a file.
git-svn-id: svn://kolibrios.org@7705 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d96b0532ba
commit
633d75c969
@ -777,8 +777,9 @@ endl
|
|||||||
.searchEndSect:
|
.searchEndSect:
|
||||||
mov al,'['
|
mov al,'['
|
||||||
repne scasb
|
repne scasb
|
||||||
|
jnz @f
|
||||||
dec edi
|
dec edi
|
||||||
|
@@:
|
||||||
mov [endDel],edi
|
mov [endDel],edi
|
||||||
|
|
||||||
test ecx,ecx
|
test ecx,ecx
|
||||||
@ -798,7 +799,6 @@ endl
|
|||||||
mov eax,dword[funcFile+12]
|
mov eax,dword[funcFile+12]
|
||||||
sub eax,[endDel]
|
sub eax,[endDel]
|
||||||
add eax,[begDel]
|
add eax,[begDel]
|
||||||
dec eax
|
|
||||||
|
|
||||||
mov dword[funcFile],2 ;write buffer to file
|
mov dword[funcFile],2 ;write buffer to file
|
||||||
mov dword[funcFile+12],eax
|
mov dword[funcFile+12],eax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user