mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 08:06:49 +03:00
NTFS: creation fix
git-svn-id: svn://kolibrios.org@6409 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ad7d99c2aa
commit
a1265dabee
@ -2228,15 +2228,13 @@ ntfs_CreateFile:
|
||||
add ecx, [esi+recordRealSize]
|
||||
cmp [esi+recordAllocatedSize], ecx
|
||||
jc .errorPop3 ; tree grow required
|
||||
sub ecx, 8
|
||||
mov [esi+recordRealSize], ecx
|
||||
add esi, ecx
|
||||
push edi eax esi
|
||||
push edi eax
|
||||
call .ntfsNodeAlloc
|
||||
pop esi eax edi
|
||||
pop ecx edi
|
||||
jc ntfsErrorPop3
|
||||
push edi
|
||||
mov edi, [ebp+NTFS.indexRoot]
|
||||
mov eax, ecx
|
||||
add [ebp+NTFS.attr_offs], eax
|
||||
add [edi+sizeWithHeader], eax
|
||||
add [edi+sizeWithoutHeader], eax
|
||||
@ -2246,6 +2244,9 @@ ntfs_CreateFile:
|
||||
add [ecx+rootNode+nodeAllocatedSize], eax
|
||||
add ecx, [ebp+NTFS.indexPointer]
|
||||
sub ecx, [ebp+NTFS.secondIndexBuffer]
|
||||
mov esi, [ebp+NTFS.frs_buffer]
|
||||
add [esi+recordRealSize], eax
|
||||
add esi, [esi+recordRealSize]
|
||||
mov edi, esi
|
||||
sub esi, eax
|
||||
neg ecx
|
||||
|
Loading…
Reference in New Issue
Block a user