From 8bb7273e0f9e0255d314346902c86998c3b921f7 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sun, 13 Mar 2016 09:13:27 +0000 Subject: [PATCH] hotfix r6333: copy full path git-svn-id: svn://kolibrios.org@6337 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/taskman.inc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index defe339c07..f2515b0600 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -867,7 +867,29 @@ common_app_entry: add esi, ecx jmp .check_cmdline +.copy_full_path: + mov esi, [current_slot] + mov esi, [esi+APPDATA.cur_dir] + mov al, '/' + stosb +@@: + lodsb + stosb + test al, al + jnz @B + mov byte [edi-1], '/' + + lea esi, [ebp+sizeof.APP_HDR] + xor eax, eax + rep movsb + stosb + jmp .check_cmdline + .copy_filename: + + cmp byte [esi], '/' + jne .copy_full_path + rep movsb stosb