hotfix r6333: copy full path

git-svn-id: svn://kolibrios.org@6337 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2016-03-13 09:13:27 +00:00
parent 4b9e73fcb4
commit 8bb7273e0f

View File

@ -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