Corretta costruzione del nome temporaneo

git-svn-id: svn://10.65.10.50/trunk@967 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-02-06 10:33:02 +00:00
parent d8fd9aa5f7
commit bcdd621fb5

View File

@ -667,12 +667,12 @@ const TFilename& TFilename::tempdir()
#ifndef FOXPRO #ifndef FOXPRO
TString user = TApplication::user(); if (res == 0)
{
TString16 user(TApplication::user());
user.lower(); user.lower();
if (res == 0 && user.not_empty()) if (_tempdir.find(user) != _tempdir.len() - user.len())
{
if (_tempdir.find(user) < 0)
#if XVT_OS==XVT_OS_SCOUNIX #if XVT_OS==XVT_OS_SCOUNIX
_tempdir << '/' << user; _tempdir << '/' << user;
#else #else