From 8dbbd230dacedbb49d29b8fbf179d611f0ba47ec Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 20 Oct 2004 12:27:19 +0000 Subject: [PATCH] forgot return statement Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2032 --- include/dos_system.h | 3 ++- src/dos/dos_devices.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/dos_system.h b/include/dos_system.h index 7cb770df..ef29576a 100644 --- a/include/dos_system.h +++ b/include/dos_system.h @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_system.h,v 1.25 2004-10-17 14:44:59 qbix79 Exp $ */ +/* $Id: dos_system.h,v 1.26 2004-10-20 12:27:18 qbix79 Exp $ */ #ifndef DOSSYSTEM_H_ #define DOSSYSTEM_H_ @@ -87,6 +87,7 @@ public: DOS_Device & operator= (const DOS_Device & orig) { DOS_File::operator=(orig); devnum=orig.devnum; + return *this; } DOS_Device():DOS_File(),devnum(0){}; virtual bool Read(Bit8u * data,Bit16u * size); diff --git a/src/dos/dos_devices.cpp b/src/dos/dos_devices.cpp index d6eb1128..f8b442c0 100644 --- a/src/dos/dos_devices.cpp +++ b/src/dos/dos_devices.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_devices.cpp,v 1.6 2004-10-17 14:45:00 qbix79 Exp $ */ +/* $Id: dos_devices.cpp,v 1.7 2004-10-20 12:27:19 qbix79 Exp $ */ #include #include "dosbox.h" @@ -106,6 +106,7 @@ DOS_File & DOS_File::operator= (const DOS_File & orig) { if(orig.name) { name=new char [strlen(orig.name)];strcpy(name,orig.name); } + return *this; } Bit8u DOS_FindDevice(char * name) {