From 633d75c96973a2f197aab73626423504da751109 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Wed, 4 Dec 2019 22:44:16 +0000 Subject: [PATCH] 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 --- programs/develop/libraries/libs-dev/libini/libini.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/develop/libraries/libs-dev/libini/libini.asm b/programs/develop/libraries/libs-dev/libini/libini.asm index 4de3314b97..e2b2405d49 100644 --- a/programs/develop/libraries/libs-dev/libini/libini.asm +++ b/programs/develop/libraries/libs-dev/libini/libini.asm @@ -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