1
0
Fork 0

Finally solve that weird windows specific filebug.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1975
This commit is contained in:
Peter Veenstra 2004-09-14 18:56:11 +00:00
parent fb9761eac0
commit c72e8eb917
2 changed files with 7 additions and 3 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: cross.h,v 1.9 2004-08-23 09:34:21 harekiet Exp $ */
/* $Id: cross.h,v 1.10 2004-09-14 18:56:11 qbix79 Exp $ */
#ifndef _CROSS_H
#define _CROSS_H
@ -40,7 +40,7 @@
#if defined (WIN32) /* Win 32 */
#define CROSS_FILENAME(blah) {if(blah && *blah && (blah[strlen(blah)-1] == '\\')) strcat(blah,".");}
#define CROSS_FILENAME(blah)
#define CROSS_FILESPLIT '\\'
#define F_OK 0
#else

View file

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: drive_cache.cpp,v 1.36 2004-08-04 09:12:53 qbix79 Exp $ */
/* $Id: drive_cache.cpp,v 1.37 2004-09-14 18:56:11 qbix79 Exp $ */
#include "drives.h"
#include "dos_inc.h"
@ -176,6 +176,10 @@ char* DOS_Drive_Cache::GetExpandName(const char* path)
GetLongName(dirInfo, dir);
strcat(work,dir);
}
if(work && *work && ( work[strlen(work)-1] == CROSS_FILESPLIT ) )
work[strlen(work)-1] = 0; // Remove trailing slashes
return work;
};