Skip to content

Instantly share code, notes, and snippets.

@teslamint
Created November 2, 2017 13:02
Show Gist options
  • Save teslamint/7b97f8ca3350d170f82aa53bb978a3e6 to your computer and use it in GitHub Desktop.
Save teslamint/7b97f8ca3350d170f82aa53bb978a3e6 to your computer and use it in GitHub Desktop.
DOSBox SVN r4063 nullmodem patch
Index: src/hardware/serialport/nullmodem.cpp
===================================================================
--- a/src/hardware/serialport/nullmodem.cpp (revision 4063)
+++ b/src/hardware/serialport/nullmodem.cpp (working copy)
@@ -148,7 +148,7 @@
setCTS(dtrrespect||transparent);
setDSR(dtrrespect||transparent);
setRI(false);
- setCD(clientsocket > 0); // CD on if connection established
+ setCD(clientsocket != NULL); // CD on if connection established
}
CNullModem::~CNullModem() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment