Subversion Repositories Kolibri OS

Rev

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

Rev 9530 Rev 9876
Line 245... Line 245...
245
;-------------------------------------------------------------------------------
245
;-------------------------------------------------------------------------------
246
exit:
246
exit:
247
    mcall   SF_SYSTEM, SSF_TERMINATE_THREAD, [nwin.sid]
247
    mcall   SF_SYSTEM, SSF_TERMINATE_THREAD, [nwin.sid]
248
    mcall   SF_TERMINATE_PROCESS
248
    mcall   SF_TERMINATE_PROCESS
249
;-------------------------------------------------------------------------------
249
;-------------------------------------------------------------------------------
-
 
250
error_exit:
-
 
251
    push    .notify
-
 
252
    dec     esp
-
 
253
    push    0
-
 
254
    push    0
-
 
255
    push    .error_message
-
 
256
    push    0
-
 
257
    push    SSF_START_APP
-
 
258
 
-
 
259
    mcall   SF_FILE, esp
-
 
260
    add     esp, 6*4 + 1
-
 
261
    mcall   SF_SYSTEM, SSF_TERMINATE_THREAD, [nwin.sid]
-
 
262
    mcall   SF_TERMINATE_PROCESS
-
 
263
.error_message:
-
 
264
    db  '"@DOCKY\nError load @RESHARE" -tdE',0
-
 
265
.notify:
-
 
266
    db  '/sys/@notify',0
-
 
267
;-------------------------------------------------------------------------------
250
align 4
268
align 4
251
main_loop:
269
main_loop:
252
    mcall   SF_WAIT_EVENT
270
    mcall   SF_WAIT_EVENT
Line 253... Line 271...
253
 
271
 
Line 615... Line 633...
615
LOAD_ICONS:
633
LOAD_ICONS:
616
    mov     esi, 0 ; esi is a counter of mem_open attempts
634
    mov     esi, 0 ; esi is a counter of mem_open attempts
617
  @@:
635
  @@:
618
    ; try to open shr memory, if failed then make 5 attempts more
636
    ; try to open shr memory, if failed then make 5 attempts more
619
    mcall   SF_SYS_MISC, SSF_MEM_OPEN,icons_resname ; 0 = SHM_READ
637
    mcall   SF_SYS_MISC, SSF_MEM_OPEN,icons_resname ; 0 = SHM_READ
-
 
638
    cmp     edx, 5
-
 
639
    jz      error_exit
-
 
640
 
620
    cmp     eax,0
641
    cmp     eax,0
621
    jne     @f
642
    jne     @f
622
    inc     esi
643
    inc     esi
623
    cmp     esi,10
644
    cmp     esi,10
624
    je      exit
645
    je      exit