~ubuntu-branches/ubuntu/trusty/unrar-nonfree/trusty-proposed

« back to all changes in this revision

Viewing changes to find.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chris Anderson
  • Date: 2004-12-01 02:22:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041201022256-c3pj5nufp88tdyw6
Tags: 3.4.3-1
* New upstream release 
* Applied Ulf Harnhammar's patch to solve overflows when $HOME was too
  large (closes: #280263).

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
#ifdef _APPLE
107
107
  if (!LowAscii(fd->Name))
108
108
    UtfToWide(fd->Name,fd->NameW,sizeof(fd->NameW));
 
109
#elif defined(UNICODE_SUPPORTED)
 
110
  if (!LowAscii(fd->Name) && UnicodeEnabled())
 
111
    CharToWide(fd->Name,fd->NameW);
109
112
#endif
110
113
#endif
111
114
  fd->IsDir=IsDir(fd->FileAttr);
163
166
  fd->ctime=st.st_ctime;
164
167
  fd->FileTime=fd->mtime.GetDos();
165
168
  strcpy(fd->Name,FindMask);
 
169
 
166
170
  *fd->NameW=0;
167
171
#ifdef _APPLE
168
172
  if (!LowAscii(fd->Name))
169
173
    UtfToWide(fd->Name,fd->NameW,sizeof(fd->NameW));
 
174
#elif defined(UNICODE_SUPPORTED)
 
175
  if (!LowAscii(fd->Name) && UnicodeEnabled())
 
176
    CharToWide(fd->Name,fd->NameW);
170
177
#endif
171
178
#endif
172
179
  fd->IsDir=IsDir(fd->FileAttr);