1
0
Fork 0

Test for too high drive setting and included <ctype.h> for toupper

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@216
This commit is contained in:
Sjoerd van der Berg 2002-08-25 16:36:51 +00:00
parent d188ba8f5b
commit c80281976f

View file

@ -19,6 +19,8 @@
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include "dosbox.h"
#include "mem.h"
#include "cpu.h"
@ -39,7 +41,7 @@ Bit8u DOS_GetDefaultDrive(void) {
}
void DOS_SetDefaultDrive(Bit8u drive) {
CurrentDrive=drive;
if (drive<=DOS_DRIVES) CurrentDrive=drive;
}
bool DOS_MakeName(char * name,char * fullname,Bit8u * drive) {