diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index 6f38bf6c7..ee9e17c56 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -940,12 +940,6 @@ proc new_sys_threads mov ecx, 11 rep movsb ;copy process name - mov eax, [ebx+APPDATA.process] - mov [edx+APPDATA.process], eax - - lea ebx, [edx+APPDATA.list] - lea ecx, [eax+PROC.thr_list] - list_add_tail ebx, ecx ;add thread to process child's list mov eax, [ebx+APPDATA.tls_base] test eax, eax @@ -959,6 +953,13 @@ proc new_sys_threads @@: mov [edx+APPDATA.tls_base], eax + mov eax, [ebx+APPDATA.process] + mov [edx+APPDATA.process], eax + + lea ebx, [edx+APPDATA.list] + lea ecx, [eax+PROC.thr_list] + list_add_tail ebx, ecx ;add thread to process child's list + lea eax, [app_cmdline] stdcall set_app_params , [slot], eax, dword 0, \ dword 0, [flags]