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

View File

@ -87,6 +87,14 @@ START:
load_libraries l_libs_start,end_l_libs 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 ;OpenDialog initialisation
push dword OpenDialog_data push dword OpenDialog_data
call [OpenDialog_Init] call [OpenDialog_Init]
@ -124,7 +132,7 @@ load_libraries l_libs_start,end_l_libs
mov [param],al mov [param],al
inc esi inc esi
.defact: .defact:
mov edi,filename;fnbuf mov edi,filename;fnbuf
mov ecx,64 mov ecx,64
rep movsd rep movsd
jmp open_file jmp open_file