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:
Ivan Baravy 2019-12-04 22:44:16 +00:00
parent d96b0532ba
commit 633d75c969

View File

@ -777,8 +777,9 @@ endl
.searchEndSect:
mov al,'['
repne scasb
jnz @f
dec edi
@@:
mov [endDel],edi
test ecx,ecx
@ -798,7 +799,6 @@ endl
mov eax,dword[funcFile+12]
sub eax,[endDel]
add eax,[begDel]
dec eax
mov dword[funcFile],2 ;write buffer to file
mov dword[funcFile+12],eax