From 81771d7c292548b0ead547276412bb4b21f43471 Mon Sep 17 00:00:00 2001 From: Matt Harlum <955874+LIV2@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:01:57 +1300 Subject: [PATCH] Fix tcp serial ports (#1596) Co-authored-by: Dimitris Panokostas --- src/osdep/amiberry_serial.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/osdep/amiberry_serial.cpp b/src/osdep/amiberry_serial.cpp index 89a94f597..f034d9af5 100644 --- a/src/osdep/amiberry_serial.cpp +++ b/src/osdep/amiberry_serial.cpp @@ -337,11 +337,8 @@ static int opentcp (const TCHAR *sername) int openser (const TCHAR *sername) { - if (!_tcsnicmp(sername, _T("TCP://"), 6)) { - return opentcp(sername + 6); - } if (!_tcsnicmp(sername, _T("TCP:"), 4)) { - return opentcp(sername + 4); + return opentcp(sername); } if (sp_get_port_by_name(sername, &port) != SP_OK) {