From daffb22cca496c21ec093c084be654a185f3ecad Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Wed, 25 Aug 2010 19:36:25 +0000 Subject: [PATCH] When MidAmp will start with parm "path of file", It is giving right path for OpenDialog now. git-svn-id: svn://kolibrios.org@1595 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/midamp/trunk/midamp.asm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/programs/media/midamp/trunk/midamp.asm b/programs/media/midamp/trunk/midamp.asm index 4265885a49..0403a29a51 100644 --- a/programs/media/midamp/trunk/midamp.asm +++ b/programs/media/midamp/trunk/midamp.asm @@ -87,6 +87,14 @@ START: load_libraries l_libs_start,end_l_libs + mov esi,I_PARAM + cmp dword[esi],0 + jz @f + mov edi,filename + mov ecx,256/4 + rep movsd + mov byte [edi-1], 0 +@@: ;OpenDialog initialisation push dword OpenDialog_data call [OpenDialog_Init] @@ -124,7 +132,7 @@ load_libraries l_libs_start,end_l_libs mov [param],al inc esi .defact: - mov edi,filename;fnbuf + mov edi,filename;fnbuf mov ecx,64 rep movsd jmp open_file