Leave INT 2Fh clipboard disabled by default, some programs think Windows is running if they detect it [https://github.com/joncampbell123/dosbox-x/issues/5025]

This commit is contained in:
Jonathan Campbell
2024-06-08 19:35:40 -07:00
parent 6b42bac5b1
commit aef280b6dc
2 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,9 @@
Next:
- The DOSBox clipboard API (via INT 2Fh) is now disabled by default, because
some programs use it's presence to detect whether they are running under
Windows. This fixes a program where Norton Desktop 1.0 does not use it's
"graphical" text UI elements because it thinks it's running within a
Windows DOS box. (joncampbell123).
- Remove unnecessary and useless Win32 fcntl() on some memory typecast
to int which is causing a segfault whenever a ZIP file is mounted
as a drive with an overlay filesystem atop it. (joncampbell123)

View File

@@ -4783,8 +4783,9 @@ void DOSBOX_SetupConfigSections(void) {
"It has no effect if \"dos clipboard device enable\" is disabled, and it is deactivated if the secure mode is enabled.");
Pstring->SetBasic(true);
Pbool = secprop->Add_bool("dos clipboard api",Property::Changeable::WhenIdle, true);
Pbool->Set_help("If set, DOS APIs for communications with the Windows clipboard will be enabled for shared clipboard communications.");
Pbool = secprop->Add_bool("dos clipboard api",Property::Changeable::WhenIdle, false);
Pbool->Set_help("If set, DOS APIs for communications with the Windows clipboard will be enabled for shared clipboard communications.\n"
"Caution: Enabling this API may cause some programs to think they are running under Windows");
Pbool->SetBasic(true);
Pbool = secprop->Add_bool("dos idle api",Property::Changeable::OnlyAtStart,true);