Fixed bug in dispose_app_cr3_table: we count yourself as thread now

so code must be slightly changed.

git-svn-id: svn://kolibrios.org@25 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Andrey Halyavin (halyavin) 2005-11-16 15:39:04 +00:00
parent 87d89cab90
commit 81314d998d

View File

@ -251,8 +251,8 @@ dispose_app_cr3_table:
;edx = number of threads
;our process is zombi so it isn't counted
test edx,edx
jnz .threadsexists
cmp edx,1
jg .threadsexists
;if there isn't threads then clear memory.
add edi,std_application_base_address shr 20