Subversion Repositories Kolibri OS

Rev

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

Rev 6926 Rev 7122
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: 6926 $
8
$Revision: 7122 $
9
 
9
 
Line 474... Line 474...
474
        stdcall read_file, [file_name], eax, dword 0, [file_size]
474
        stdcall read_file, [file_name], eax, dword 0, [file_size]
475
        cmp     ebx, [file_size]
475
        cmp     ebx, [file_size]
476
        jne     .cleanup
476
        jne     .cleanup
Line 477... Line 477...
477
 
477
 
478
        mov     eax, [file]
478
        mov     eax, [file]
479
        cmp     dword [eax], 0x4B43504B
479
        cmp     dword [eax], 'KPCK'
480
        jne     .exit
480
        jne     .exit
481
        mov     ebx, [eax+4]
481
        mov     ebx, [eax+4]
482
        mov     [file_size], ebx
482
        mov     [file_size], ebx
Line 581... Line 581...
581
        cmp     ebx, [file_size]
581
        cmp     ebx, [file_size]
Line 582... Line 582...
582
 
582
 
Line 583... Line 583...
583
        jne     .err_2
583
        jne     .err_2
584
 
584
 
585
        mov     eax, [km_file]
585
        mov     eax, [km_file]
Line 586... Line 586...
586
        cmp     dword [eax], 0x4B43504B          ; check kpack signature
586
        cmp     dword [eax], 'KPCK'              ; check kpack signature
587
        jne     .raw_file
587
        jne     .raw_file
588
 
588