Subversion Repositories Kolibri OS

Rev

Rev 1400 | Rev 1517 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1400 Rev 1504
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 1400 $
8
$Revision: 1504 $
9
 
9
 
10
 
10
 
Line 940... Line 940...
940
        stc
940
        stc
941
.end:
941
.end:
942
        pop     edi ecx eax
942
        pop     edi ecx eax
943
        ret
943
        ret
Line -... Line 944...
-
 
944
 
-
 
945
unichar_toupper:
-
 
946
        push    eax
-
 
947
        call    uni2ansi_char
-
 
948
        cmp     al, '_'
-
 
949
        jz      .unk
-
 
950
        add     esp, 4
-
 
951
        call    char_toupper
-
 
952
        jmp     ansi2uni_char
-
 
953
.unk:
-
 
954
        pop     eax
-
 
955
        ret
944
 
956
 
945
ntfs_find_lfn:
957
ntfs_find_lfn:
946
; in: esi+ebp -> name
958
; in: esi+ebp -> name
947
; out: CF=1 - file not found
959
; out: CF=1 - file not found
948
;      else CF=0, [ntfs_cur_iRecord] valid, eax->record in parent directory
960
;      else CF=0, [ntfs_cur_iRecord] valid, eax->record in parent directory
Line 1028... Line 1040...
1028
        add     esi, 0x52
1040
        add     esi, 0x52
1029
        movzx   ecx, byte [esi-2]
1041
        movzx   ecx, byte [esi-2]
1030
        push    edi
1042
        push    edi
1031
@@:
1043
@@:
1032
        lodsw
1044
        lodsw
1033
        call    uni2ansi_char
-
 
1034
        call    char_toupper
1045
        call    unichar_toupper
1035
        push    eax
1046
        push    eax
1036
        mov     al, [edi]
1047
        mov     al, [edi]
1037
        inc     edi
1048
        inc     edi
1038
        cmp     al, '/'
1049
        cmp     al, '/'
1039
        jz      .slash
1050
        jz      .slash
1040
        call    char_toupper
1051
        call    char_toupper
-
 
1052
        call    ansi2uni_char
1041
        cmp     al, [esp]
1053
        cmp     ax, [esp]
1042
        pop     eax
1054
        pop     eax
1043
        loopz   @b
1055
        loopz   @b
1044
        jz      .found
1056
        jz      .found
1045
        pop     edi
1057
        pop     edi
1046
        pop     esi
1058
        pop     esi