@menu: bugfix: when child menu was closed on Esc, the same child could not be opened
git-svn-id: svn://kolibrios.org@728 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a73bea0da8
commit
0ecfb6aa5b
@ -361,11 +361,18 @@ thread_stack_not_full:
|
||||
|
||||
|
||||
close:
|
||||
movzx ebx, [edi+parent] ; parent id
|
||||
shl ebx, 4
|
||||
add ebx, menu_data ; ebx = base of parent info
|
||||
call backconvert
|
||||
cmp [ebx + child], al ; if i am the child of my parent...
|
||||
jnz @f
|
||||
mov [ebx + child], -1 ; ...my parent now has no children
|
||||
@@:
|
||||
or eax, -1 ; close this thread
|
||||
mov [edi + child], al ; my child is not mine
|
||||
mcall
|
||||
|
||||
|
||||
backconvert: ; convert from pointer to process id
|
||||
mov eax, edi
|
||||
sub eax, menu_data
|
||||
|
Loading…
Reference in New Issue
Block a user