diff --git a/kernel/trunk/blkdev/disk.inc b/kernel/trunk/blkdev/disk.inc index 769dc40a84..a538b8d635 100644 --- a/kernel/trunk/blkdev/disk.inc +++ b/kernel/trunk/blkdev/disk.inc @@ -1509,9 +1509,11 @@ dyndisk_handler: pop edi ebp mov byte [edi], '/' popd [ebp] edi esi ebx + add edi, 2 test eax, eax jz .errorRename - add edi, 2 + cmp byte [edi], 0 + jz .errorRename .callFS: pop eax ebp call eax