Patch level :10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Corretta gestione dei path troppo lunghi


git-svn-id: svn://10.65.10.50/trunk@17797 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca83 2008-12-03 16:35:19 +00:00
parent ac38ef4f25
commit 4252eebd90

View File

@ -490,10 +490,13 @@ const TFilename& TFile_info::load_filedes()
_dir = _comdir; _dir = _comdir;
else else
_dir = _nordir; _dir = _nordir;
COpenFile(num(), &_filedes, _nolock, _dir); /* COpenFile(num(), &_filedes, _nolock, _dir);
strncpy(_filedes.Des, dictionary_translate(_filedes.Des), sizeof(_filedes.Des)); strncpy(_filedes.Des, dictionary_translate(_filedes.Des), sizeof(_filedes.Des));
_name = _filedes.SysName; _name = _filedes.SysName;
strncpy(_filedes.Des, dictionary_translate(_filedes.Des), sizeof(_filedes.Des)); strncpy(_filedes.Des, dictionary_translate(_filedes.Des), sizeof(_filedes.Des));
*/
_name = CAddPref(_filedes.SysName);
strncpy(_filedes.Des, dictionary_translate(_filedes.Des), sizeof(_filedes.Des)-1);
} }
else else
_name.cut(0); _name.cut(0);
@ -1424,8 +1427,8 @@ void TTable_names::fill()
TFilename n; TFilename n;
for (int logic = LF_USER; logic <= nfiles; logic++) for (int logic = LF_USER; logic <= nfiles; logic++)
{ {
const FileDes& fd = prefix().get_filedes(logic); n = prefix().get_filename(logic);
n = fd.SysName; n = n.name(); n.upper(); n = n.name_only(); n.upper();
if (_names.objptr(n) == NULL) if (_names.objptr(n) == NULL)
add_file(logic, n); add_file(logic, n);
} }