From d91cb7946f71a584cb6e49c2e7aa102c647ca901 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 12 Jan 2024 01:11:26 +0000 Subject: [PATCH] https://board.kolibrios.org/viewtopic.php?p=79329#79912 NTFS fix for sf 70.3 by Pathoswithin (non-tested) => Doczom please check if you can git-svn-id: svn://kolibrios.org@9953 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/ntfs.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernel/trunk/fs/ntfs.inc b/kernel/trunk/fs/ntfs.inc index 947e02b54c..264e3f11d0 100644 --- a/kernel/trunk/fs/ntfs.inc +++ b/kernel/trunk/fs/ntfs.inc @@ -3479,6 +3479,15 @@ ntfs_WriteFile: add eax, [ebx+12] adc edx, 0 mov [edi+fileRealSize], eax + cmp edx, [edi+fileRealSize+4] + jc @f + jnz .resize + cmp [edi+fileRealSize], eax + jnc @f +.resize: + mov [edi+fileRealSize], eax + mov [edi+fileRealSize+4], edx +@@: mov [edi+fileRealSize+4], edx push edx eax ebx call ntfsGetTime