Subversion Repositories Kolibri OS

Rev

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

Rev 529 Rev 728
Line 359... Line 359...
359
    je	   close
359
    je	   close
360
    jmp  still
360
    jmp  still
Line 361... Line 361...
361
 
361
 
-
 
362
 
-
 
363
  close:
-
 
364
        movzx   ebx, [edi+parent]       ; parent id
-
 
365
        shl     ebx, 4
-
 
366
        add     ebx, menu_data          ; ebx = base of parent info
-
 
367
        call    backconvert
-
 
368
        cmp     [ebx + child], al       ; if i am the child of my parent...
-
 
369
        jnz     @f
362
 
370
        mov     [ebx + child], -1       ; ...my parent now has no children
363
  close:
371
@@:
364
    or	   eax, -1	  ; close this thread
372
        or      eax, -1                 ; close this thread
Line 365... Line -...
365
    mov  [edi + child], al    ; my child is not mine
-
 
366
    mcall
373
        mov     [edi + child], al       ; my child is not mine
367
 
374
        mcall
368
 
375
 
369
  backconvert:		  ; convert from pointer to process id
376
  backconvert:		  ; convert from pointer to process id
370
    mov  eax, edi
377
    mov  eax, edi