diff --git a/docs/notework.txt b/docs/notework.txt index a0c3d33..d70337b 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -12,6 +12,9 @@ ______________________________________________________________________ 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 "INTERNETREPLY NO" please report if it get broken with this changes. diff --git a/goldlib/gall/gutldos.cpp b/goldlib/gall/gutldos.cpp index 979854f..624b02e 100644 --- a/goldlib/gall/gutldos.cpp +++ b/goldlib/gall/gutldos.cpp @@ -221,7 +221,9 @@ char* g_get_clip_text(void) { cpu.genint(0x2f); len = cpu.ax() + (cpu.dx() << 16); 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 cpu.ax(0x1705); cpu.dx(0x07); // OEM text