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