1
0
Fork 0

Some more cleanups and memleak fixes.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4265
This commit is contained in:
Peter Veenstra 2019-10-01 13:05:08 +00:00
parent a919e33aec
commit 6243fa9711
3 changed files with 3 additions and 6 deletions

View file

@ -98,7 +98,7 @@ static void dyn_fpu_esc0(){
if (decode.modrm.val >= 0xc0) {
dyn_fpu_top();
Bitu group=(decode.modrm.val >> 3) & 7;
Bitu sub=(decode.modrm.val & 7);
//Bitu sub=(decode.modrm.val & 7);
switch (group){
case 0x00: //FADD ST,STi /
gen_call_function((void*)&FPU_FADD,"%Drd%Drd",DREG(TMPB),DREG(EA));
@ -424,7 +424,7 @@ static void dyn_fpu_esc3(){
static void dyn_fpu_esc4(){
dyn_get_modrm();
Bitu group=(decode.modrm.val >> 3) & 7;
Bitu sub=(decode.modrm.val & 7);
//Bitu sub=(decode.modrm.val & 7);
if (decode.modrm.val >= 0xc0) {
dyn_fpu_top();
switch(group){

View file

@ -298,8 +298,6 @@ static void dh_fpu_esc3(){
static void dh_fpu_esc4(){
dyn_get_modrm();
Bitu group=(decode.modrm.val >> 3) & 7;
Bitu sub=(decode.modrm.val & 7);
if (decode.modrm.val >= 0xc0) {
cache_addb(0xdc);
cache_addb(decode.modrm.val);
@ -356,8 +354,6 @@ static void dh_fpu_esc5(){
static void dh_fpu_esc6(){
dyn_get_modrm();
Bitu group=(decode.modrm.val >> 3) & 7;
Bitu sub=(decode.modrm.val & 7);
if (decode.modrm.val >= 0xc0) {
cache_addb(0xde);
cache_addb(decode.modrm.val);

View file

@ -289,6 +289,7 @@ bool SERIAL_open(const char* portname, COMPORT* port) {
size_t len = strlen(portname);
if(len > 240) {
free(cp);
///////////////////////////////////SetLastError(ERROR_BUFFER_OVERFLOW);
return false;
}