From 8b7b77b21e74cf6197adbde57e121800725199aa Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 15 Apr 2006 15:53:37 +0000 Subject: [PATCH] Isname should use strcasecmp as it deals with emulated DOS file names. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2598 --- include/dos_system.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/dos_system.h b/include/dos_system.h index 411148ca..25a9d54b 100644 --- a/include/dos_system.h +++ b/include/dos_system.h @@ -16,12 +16,11 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_system.h,v 1.33 2006-04-10 12:52:46 qbix79 Exp $ */ +/* $Id: dos_system.h,v 1.34 2006-04-15 15:53:37 qbix79 Exp $ */ #ifndef DOSBOX_DOS_SYSTEM_H #define DOSBOX_DOS_SYSTEM_H - #include #ifndef DOSBOX_DOSBOX_H #include "dosbox.h" @@ -29,8 +28,12 @@ #ifndef DOSBOX_CROSS_H #include "cross.h" #endif - +#ifndef DOSBOX_SUPPORT_H +#include "support.h" +#endif +#ifndef DOSBOX_MEM_H #include "mem.h" +#endif #define DOS_NAMELENGTH 12 #define DOS_NAMELENGTH_ASCII (DOS_NAMELENGTH+1) @@ -71,7 +74,7 @@ public: virtual void SetName(const char* _name) { if (name) delete[] name; name = new char[strlen(_name)+1]; strcpy(name,_name); } virtual char* GetName(void) { return name; }; virtual bool IsOpen() { return open; }; - virtual bool IsName(const char* _name) { if (!name) return false; return strcmp(name,_name)==0; }; + virtual bool IsName(const char* _name) { if (!name) return false; return strcasecmp(name,_name)==0; }; virtual void AddRef() { refCtr++; }; virtual Bits RemoveRef() { return --refCtr; }; virtual bool UpdateDateTimeFromHost() { return true; }