fix crash if close parent window when open child window

git-svn-id: svn://kolibrios.org@7035 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA
2017-09-29 17:55:03 +00:00
parent 7f7bf0ddcf
commit 7cc546b610
3 changed files with 12 additions and 5 deletions

View File

@@ -500,6 +500,14 @@ button:
jmp still
.exit:
cmp dword[wnd_k_words_run],0
je @f
push ebx ecx
mcall SF_SYSTEM, SSF_TERMINATE_THREAD_ID,[wnd_k_words_run]
pop ecx ebx
test eax,eax
jnz still
@@:
cmp dword[exit_code],1
je @f
stdcall [ted_can_save], tedit0