From abcb2b1bfaa9a0e8a78adfe4d7a601228f11042e Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Tue, 31 Jan 2017 06:03:42 +0000 Subject: [PATCH] fat: sysfunction 70.4 update git-svn-id: svn://kolibrios.org@6850 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/fat.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/fs/fat.inc b/kernel/trunk/fs/fat.inc index a36b716d55..6e2034f25d 100644 --- a/kernel/trunk/fs/fat.inc +++ b/kernel/trunk/fs/fat.inc @@ -3012,10 +3012,14 @@ fat_SetFileEnd: lea ebx, [ebp+FAT.buffer] call fs_write32_sys test eax, eax + jnz .pop_ret11 + mov eax, [esp+20] + sub eax, [esp+4] + cmp eax, 1000001h + jnc .pop_ret mov eax, [edi+20-2] mov ax, [edi+26] mov edi, eax - jnz .pop_ret11 test edi, edi jz .pop_ret ; now zero new data