From 19e73b2f41730c030ac76df16f03be8010cd5c1e Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Wed, 25 Aug 2010 19:17:38 +0000 Subject: [PATCH] When KIV will start with parm "path of file", It is giving right path for OpenDialog now. git-svn-id: svn://kolibrios.org@1594 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/kiv/trunk/kiv.asm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/programs/media/kiv/trunk/kiv.asm b/programs/media/kiv/trunk/kiv.asm index 73ce81f6a1..83ce6985ae 100644 --- a/programs/media/kiv/trunk/kiv.asm +++ b/programs/media/kiv/trunk/kiv.asm @@ -29,10 +29,6 @@ START: invoke sort.START, 1 -; OpenDialog initialisation - push dword OpenDialog_data - call [OpenDialog_Init] - mov ecx, 1 ; for 15.4: 1 = tile cmp word [@PARAMS], '\T' jz set_bgr @@ -40,6 +36,18 @@ START: cmp word [@PARAMS], '\S' jz set_bgr + cmp byte [@PARAMS], 0 + jz @f + mov esi, @PARAMS + mov edi, path + mov ecx, 4096/4 + rep movsd + mov byte [edi-1], 0 +@@: +; OpenDialog initialisation + push dword OpenDialog_data + call [OpenDialog_Init] + ; initialize keyboard handling invoke ini_get_shortcut, inifilename, aShortcuts, aNext, -1, next_mod mov [next_key], eax