Some warnings if buffer allocation fails
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2014
This commit is contained in:
parent
363b366bca
commit
b23bd3a8ef
1 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: dos_mscdex.cpp,v 1.24 2004-08-13 19:43:02 qbix79 Exp $ */
|
||||
/* $Id: dos_mscdex.cpp,v 1.25 2004-10-05 19:45:27 qbix79 Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
@ -486,7 +486,7 @@ bool CMscdex::GetVolumeName(Bit8u subUnit, char* data)
|
|||
rtrim(data);
|
||||
};
|
||||
DOS_FreeMemory(seg);
|
||||
}
|
||||
} else { LOG(LOG_MISC,LOG_ERROR)("MSCDEX buffer allocation failed."); };
|
||||
return success;
|
||||
};
|
||||
|
||||
|
@ -502,7 +502,7 @@ bool CMscdex::GetCopyrightName(Bit16u drive, PhysPt data)
|
|||
mem_writeb(data+37,0);
|
||||
};
|
||||
DOS_FreeMemory(seg);
|
||||
}
|
||||
} else { LOG(LOG_MISC,LOG_ERROR)("MSCDEX buffer allocation failed."); };
|
||||
return success;
|
||||
};
|
||||
|
||||
|
@ -518,7 +518,7 @@ bool CMscdex::GetAbstractName(Bit16u drive, PhysPt data)
|
|||
mem_writeb(data+37,0);
|
||||
};
|
||||
DOS_FreeMemory(seg);
|
||||
}
|
||||
} else { LOG(LOG_MISC,LOG_ERROR)("MSCDEX buffer allocation failed."); };
|
||||
return success;
|
||||
};
|
||||
|
||||
|
@ -534,7 +534,7 @@ bool CMscdex::GetDocumentationName(Bit16u drive, PhysPt data)
|
|||
mem_writeb(data+37,0);
|
||||
};
|
||||
DOS_FreeMemory(seg);
|
||||
}
|
||||
} else { LOG(LOG_MISC,LOG_ERROR)("MSCDEX buffer allocation failed."); };
|
||||
return success;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue