Rev 9876 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9876 | Rev 9877 | ||
---|---|---|---|
Line 630... | Line 630... | ||
630 | ret |
630 | ret |
631 | endp |
631 | endp |
632 | ;------------------------------------------------------------------------------- |
632 | ;------------------------------------------------------------------------------- |
633 | LOAD_ICONS: |
633 | LOAD_ICONS: |
634 | mov esi, 0 ; esi is a counter of mem_open attempts |
634 | mov esi, 0 ; esi is a counter of mem_open attempts |
- | 635 | mov edi, esi |
|
635 | @@: |
636 | @@: |
636 | ; try to open shr memory, if failed then make 5 attempts more |
637 | ; try to open shr memory, if failed then make 5 attempts more |
637 | mcall SF_SYS_MISC, SSF_MEM_OPEN,icons_resname ; 0 = SHM_READ |
638 | mcall SF_SYS_MISC, SSF_MEM_OPEN,icons_resname ; 0 = SHM_READ |
638 | cmp edx, 5 |
- | |
639 | jz error_exit |
- | |
Line 640... | Line 639... | ||
640 | 639 | ||
641 | cmp eax,0 |
640 | cmp eax,0 |
642 | jne @f |
641 | jne @f |
643 | inc esi |
642 | inc edi |
644 | cmp esi,10 |
643 | cmp edi,10 |
645 | je exit |
644 | je error_exit |
646 | mcall SF_SLEEP, 70 |
645 | mcall SF_SLEEP, 70 |
647 | jmp @b |
646 | jmp @b |
648 | @@: |
647 | @@: |
649 | mov [shr_icons_ptr], eax |
648 | mov [shr_icons_ptr], eax |