ntfs: fix for minimal cluster size

git-svn-id: svn://kolibrios.org@6824 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pathoswithin 2017-01-06 12:42:17 +00:00
parent 48916984b1
commit 61afff5eba

View File

@ -2083,6 +2083,8 @@ ntfs_CreateFile:
mov eax, [ebp+NTFS.cur_subnode_size] mov eax, [ebp+NTFS.cur_subnode_size]
cmp eax, [ebp+NTFS.cur_size] cmp eax, [ebp+NTFS.cur_size]
jnz @f jnz @f
cmp [ebp+NTFS.sectors_per_cluster], 1
jz @f
mov al, 1 mov al, 1
@@: @@:
mov [ebp+NTFS.fileDataSize], eax mov [ebp+NTFS.fileDataSize], eax