CVS: winex/files dos_fs.c,1.34,1.35
[email protected] 31 Jul 2007 17:43:43 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/files dos_fs.c,1.34,1.35Update of /var/lib/cvsd/cvsroot/winex/files
In directory agravaine:/tmp/cvs-serv22826/files
Modified Files:
dos_fs.c
Log Message:
- further optimize DOSFS_FindUnixName, and in the process work around an apparent compiler bug showing up in some versions of GCC
Index: dos_fs.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/files/dos_fs.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- dos_fs.c 31 Jul 2007 17:43:36 -0000 1.34
+++ dos_fs.c 31 Jul 2007 17:43:41 -0000 1.35
@@ -609,7 +609,7 @@
char dos_name[12], tmp_buf[13];
BOOL ret;
char *full_path, *cur_char;
- BY_HANDLE_FILE_INFORMATION info;
+ struct stat st;
const char *p = strchr( name, '/' );
int len = p ? (int)(p - name) : strlen(name);
@@ -639,7 +639,7 @@
*cur_char++ = '/';
strncpy (cur_char, name, len);
cur_char[len] = '\0';
- if (FILE_Stat (full_path, &info))
+ if (lstat (full_path, &st) != -1)
{
if (long_buf)
strcpy (long_buf, cur_char);