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
This commit is contained in:
Marat Zakiyanov (Mario79) 2010-08-25 19:17:38 +00:00
parent 23b7fbd318
commit 19e73b2f41

View File

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