diff --git a/kernel/trunk/fs/exfat.inc b/kernel/trunk/fs/exfat.inc index 2e4ee51228..e26eee3f9c 100644 --- a/kernel/trunk/fs/exfat.inc +++ b/kernel/trunk/fs/exfat.inc @@ -18,7 +18,7 @@ iglobal align 4 exFAT_user_functions: dd exFAT_free - dd (exFAT_user_functions_end - exFAT_user_functions - 4) / 4 + dd (exFAT_user_functions_end - exFAT_user_functions - 8) / 4 dd exFAT_ReadFile dd exFAT_ReadFolder dd 0 ;exFAT_CreateFile diff --git a/kernel/trunk/fs/ext.inc b/kernel/trunk/fs/ext.inc index 4b644ce228..84a97c2052 100644 --- a/kernel/trunk/fs/ext.inc +++ b/kernel/trunk/fs/ext.inc @@ -18,7 +18,7 @@ iglobal align 4 ext_user_functions: dd ext_free - dd (ext_user_functions_end - ext_user_functions - 4) / 4 + dd (ext_user_functions_end - ext_user_functions - 8) / 4 dd ext_ReadFile dd ext_ReadFolder dd ext_CreateFile diff --git a/kernel/trunk/fs/fat.inc b/kernel/trunk/fs/fat.inc index 14b1959678..abe3937a65 100644 --- a/kernel/trunk/fs/fat.inc +++ b/kernel/trunk/fs/fat.inc @@ -18,7 +18,7 @@ iglobal align 4 fat_user_functions: dd fat_free - dd (fat_user_functions_end - fat_user_functions - 4) / 4 + dd (fat_user_functions_end - fat_user_functions - 8) / 4 dd fat_Read dd fat_ReadFolder dd fat_CreateFile diff --git a/kernel/trunk/fs/ntfs.inc b/kernel/trunk/fs/ntfs.inc index 264e3f11d0..197c3a169f 100644 --- a/kernel/trunk/fs/ntfs.inc +++ b/kernel/trunk/fs/ntfs.inc @@ -18,7 +18,7 @@ iglobal align 4 ntfs_user_functions: dd ntfs_free - dd (ntfs_user_functions_end - ntfs_user_functions - 4) / 4 + dd (ntfs_user_functions_end - ntfs_user_functions - 8) / 4 dd ntfs_ReadFile dd ntfs_ReadFolder dd ntfs_CreateFile @@ -3478,7 +3478,7 @@ ntfs_WriteFile: mov edx, [ebx+8] add eax, [ebx+12] adc edx, 0 - mov [edi+fileRealSize], eax + cmp edx, [edi+fileRealSize+4] jc @f jnz .resize @@ -3488,7 +3488,6 @@ ntfs_WriteFile: mov [edi+fileRealSize], eax mov [edi+fileRealSize+4], edx @@: - mov [edi+fileRealSize+4], edx push edx eax ebx call ntfsGetTime mov [edi+fileModified], eax diff --git a/kernel/trunk/fs/xfs.asm b/kernel/trunk/fs/xfs.asm index 2ab2617b82..e7a50fd673 100644 --- a/kernel/trunk/fs/xfs.asm +++ b/kernel/trunk/fs/xfs.asm @@ -80,7 +80,7 @@ iglobal align 4 xfs._.user_functions: dd xfs._.free - dd (xfs._.user_functions_end-xfs._.user_functions-4)/4 + dd (xfs._.user_functions_end-xfs._.user_functions-8)/4 dd xfs_Read dd xfs_ReadFolder dd 0;xfs_Rewrite