Compatibility fix
This commit is contained in:
parent
a1f5bf1f8e
commit
e9881a6129
@ -12,6 +12,9 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
- Compatibility fix for http://www.chat.ru/~tulser/clipbrd.zip. Though
|
||||||
|
it is not GoldED+ fault.
|
||||||
|
|
||||||
- Some fixes for replying through the gate. If someone use
|
- Some fixes for replying through the gate. If someone use
|
||||||
"INTERNETREPLY NO" please report if it get broken with this changes.
|
"INTERNETREPLY NO" please report if it get broken with this changes.
|
||||||
|
|
||||||
|
@ -221,7 +221,9 @@ char* g_get_clip_text(void) {
|
|||||||
cpu.genint(0x2f);
|
cpu.genint(0x2f);
|
||||||
len = cpu.ax() + (cpu.dx() << 16);
|
len = cpu.ax() + (cpu.dx() << 16);
|
||||||
if(len != 0)
|
if(len != 0)
|
||||||
if((seg = __dpmi_allocate_dos_memory(len >> 4, &selector)) != -1) {
|
// For compatibility with http://www.chat.ru/~tulser/clipbrd.zip
|
||||||
|
// we'll round up memory.
|
||||||
|
if((seg = __dpmi_allocate_dos_memory((len + 0x1f) >> 4, &selector)) != -1) {
|
||||||
// Get clipboard data
|
// Get clipboard data
|
||||||
cpu.ax(0x1705);
|
cpu.ax(0x1705);
|
||||||
cpu.dx(0x07); // OEM text
|
cpu.dx(0x07); // OEM text
|
||||||
|
Reference in New Issue
Block a user