Subversion Repositories Kolibri OS

Rev

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

Rev 7736 Rev 8676
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2016. 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: 7736 $
8
$Revision: 8676 $
9
 
9
 
10
ERROR_SUCCESS        = 0
10
ERROR_SUCCESS        = 0
11
ERROR_DISK_BASE      = 1
11
ERROR_DISK_BASE      = 1
Line 456... Line 456...
456
        mov     [full_file_name_table.size], 2
456
        mov     [full_file_name_table.size], 2
457
        ret
457
        ret
Line 458... Line 458...
458
 
458
 
459
.get:
459
.get:
-
 
460
; in: ecx -> buffer, edx = length, eax = encoding
-
 
461
        stdcall is_region_userspace, ecx, edx
-
 
462
        jnz     @f
-
 
463
 
-
 
464
        ; if illegal buffer given
-
 
465
        xor     edx, edx
-
 
466
        jmp     .ret
-
 
467
@@:
460
; in: ecx -> buffer, edx = length, eax = encoding
468
 
461
        mov     esi, edi
469
        mov     esi, edi
462
        inc     esi
470
        inc     esi
463
        mov     edi, ecx
471
        mov     edi, ecx
464
        cmp     edx, maxPathLength
472
        cmp     edx, maxPathLength