Subversion Repositories Kolibri OS

Rev

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

Rev 7167 Rev 7201
Line 642... Line 642...
642
;> eax = pointer to buffer                                                                        ;;
642
;> eax = pointer to buffer                                                                        ;;
643
;> ecx = size of buffer                                                                           ;;
643
;> ecx = size of buffer                                                                           ;;
644
;;------------------------------------------------------------------------------------------------;;
644
;;------------------------------------------------------------------------------------------------;;
645
;< eax = status of SF 70.3                                                                        ;;
645
;< eax = status of SF 70.3                                                                        ;;
646
;;================================================================================================;;
646
;;================================================================================================;;
-
 
647
        cmp     [logfile_offset], -1 ; if offset == -1 => logging disabled
-
 
648
        jne     @f
-
 
649
        mov     eax, 0
-
 
650
        ret
-
 
651
      @@:
647
        mov     [filestruct2.subfn], 3
652
        mov     [filestruct2.subfn], 3
648
        m2m     [filestruct2.offset], [logfile_offset]
653
        m2m     [filestruct2.offset], [logfile_offset]
649
        mov     [filestruct2.size], ecx
654
        mov     [filestruct2.size], ecx
650
        mov     [filestruct2.ptr], eax
655
        mov     [filestruct2.ptr], eax
651
        mov     [filestruct2.name], log_file
656
        mov     [filestruct2.name], log_file