Get upload filename was changing to the directory of the file

This commit is contained in:
mysticbbs 2013-02-22 20:45:12 -05:00
parent e0635cfde7
commit 03668f9f84
1 changed files with 5 additions and 0 deletions

View File

@ -408,6 +408,7 @@ Var
Str : String; Str : String;
Path : String; Path : String;
Mask : String; Mask : String;
OrigDIR : String;
Procedure UpdateInfo; Procedure UpdateInfo;
Begin Begin
@ -498,6 +499,8 @@ Begin
DirList := TMenuList.Create(TOutput(Screen)); DirList := TMenuList.Create(TOutput(Screen));
FileList := TMenuList.Create(TOutput(Screen)); FileList := TMenuList.Create(TOutput(Screen));
GetDIR (0, OrigDIR);
FileList.NoWindow := True; FileList.NoWindow := True;
FileList.LoChars := #9#13#27; FileList.LoChars := #9#13#27;
FileList.HiChars := #77; FileList.HiChars := #77;
@ -630,6 +633,8 @@ Begin
End; End;
Until Done; Until Done;
ChDIR(OrigDIR);
FileList.Free; FileList.Free;
DirList.Free; DirList.Free;
Box.Close; Box.Close;