diff --git a/kernel/trunk/fs/fat.inc b/kernel/trunk/fs/fat.inc index ea04fc03cd..5fa6a2e4fa 100644 --- a/kernel/trunk/fs/fat.inc +++ b/kernel/trunk/fs/fat.inc @@ -1808,6 +1808,8 @@ fat_Read: mov ebx, [ebx+16] ; buffer push ebx push 0 + test ecx, ecx + jz .done mov eax, [edi+28] sub eax, edx jb .fileEnd