From cb0c6cee9aea64564aefe8994d704ca7091af990 Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Tue, 3 Oct 2017 10:27:20 +0000 Subject: [PATCH] sysfunction 70.10 new name validation git-svn-id: svn://kolibrios.org@7040 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/disk.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/blkdev/disk.inc b/kernel/trunk/blkdev/disk.inc index 769dc40a8..a538b8d63 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