From 9490c62e74ca6328cee69d703cb307f5e1b59516 Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Tue, 28 Feb 2017 15:55:21 +0000 Subject: [PATCH] ntfs: fix volume name git-svn-id: svn://kolibrios.org@6869 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/ntfs.inc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/fs/ntfs.inc b/kernel/trunk/fs/ntfs.inc index 1c65372c6a..05bbb140bf 100644 --- a/kernel/trunk/fs/ntfs.inc +++ b/kernel/trunk/fs/ntfs.inc @@ -1797,11 +1797,18 @@ ntfs_GetFileInfo: jc ntfsFail mov ecx, [ebp+NTFS.cur_read] mov [edi+ecx], ax - cmp [ebx+8], eax - jnz .end - mov esi, edi + cmp byte [ebx+8], 2 + jz .end shr ecx, 1 jz .end + mov esi, edi + cmp byte [ebx+8], 3 + jnz @f + shl ecx, 1 + call UTF16to8_string + mov byte [edi], 0 + jmp .end + @@: lodsw call uni2ansi_char