From 2c8c7d9a07e03963ac93ee9d7a7c163e0320ba4a Mon Sep 17 00:00:00 2001 From: leency Date: Wed, 2 Apr 2025 02:57:25 +0300 Subject: [PATCH] Unz: fix #27 --- programs/fs/unz/unz.asm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/programs/fs/unz/unz.asm b/programs/fs/unz/unz.asm index 7cad022aa..a5a2f2197 100644 --- a/programs/fs/unz/unz.asm +++ b/programs/fs/unz/unz.asm @@ -41,6 +41,7 @@ dd 1, start, init_end, end_mem, stack_top, params, 0 include 'lang.inc' ; Language support for locales: ru_RU (CP866), es_ES, en_US. include '../../macros.inc' include '../../proc32.inc' +include "../../string.inc" include '../../develop/libraries/box_lib/trunk/box_lib.mac' include '../../dll.inc' ;include '../../debug.inc' @@ -369,6 +370,12 @@ endl mcall 30,4,,1 jmp .n +@@: + stdcall string.length, pathOut + add eax, pathOut + cmpne [eax - 1], byte '/', @f + mov [eax - 1], byte 0 + dec dword[edtUnpPath.size] @@: mcall 30,4,pathOut,1 .n: