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:
parent
d188ba8f5b
commit
c80281976f
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue