mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
fix clipboard API pasting on non-Windows
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
to only log DOS console outputs. (Wengier)
|
||||
- It is now possible to translate text for graphical
|
||||
Configuration Tool and Mapper Editor interfaces.
|
||||
The size/position of some buttons in Configuration
|
||||
Tool are adjusted accordingly as well. (Wengier)
|
||||
The sizes and/or positions of some buttons in these
|
||||
interfaces are adjusted accordingly too. (Wengier)
|
||||
- Config option "usescancodes=auto" now implies false
|
||||
for PC-98 mode in SDL1 builds. (Wengier)
|
||||
- For PC-98 mode, if both FONT.ROM and FREECG98.BMP
|
||||
@@ -58,6 +58,9 @@
|
||||
(and jfontsbcs19, jfontdbcs24, etc) config options
|
||||
in [render] section of config file, or the default
|
||||
fonts will be used for them. (Wengier)
|
||||
- Fixed a bug which may lead to crash when pasting
|
||||
text via the DOS clipboard API (e.g. the 4DOS CLIP:
|
||||
device) in non-Windows platforms. (Wengier)
|
||||
0.83.14
|
||||
- Added support for directories on the Z drive, so
|
||||
there is no need to put all files/programs on the
|
||||
|
@@ -490,9 +490,10 @@ static bool DOS_MultiplexFunctions(void) {
|
||||
strPasteBuffer = strPasteBuffer.substr(1, strPasteBuffer.length());
|
||||
last = head;
|
||||
}
|
||||
text[size]=0;
|
||||
text[size]=0;
|
||||
reg_ax=(uint16_t)size;
|
||||
reg_dx=(uint16_t)(size/65536);
|
||||
free(text);
|
||||
} else
|
||||
reg_dx=0;
|
||||
#endif
|
||||
@@ -527,8 +528,10 @@ static bool DOS_MultiplexFunctions(void) {
|
||||
strPasteBuffer = strPasteBuffer.substr(1, strPasteBuffer.length());
|
||||
last = head;
|
||||
}
|
||||
MEM_BlockWrite(SegPhys(es)+reg_bx,text,(Bitu)(strlen((char *)text)+1));
|
||||
text[size]=0;
|
||||
MEM_BlockWrite(SegPhys(es)+reg_bx,text,(Bitu)(size+1));
|
||||
reg_ax++;
|
||||
free(text);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user