From 338da398b5b7791798753247bae5ea7310c09313 Mon Sep 17 00:00:00 2001 From: micio Date: Wed, 16 Sep 2015 12:22:21 +0000 Subject: [PATCH] Bazaar/SerialWindows : fixed opening ports greater than COM9 git-svn-id: svn://ultimatepp.org/upp/trunk@8937 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/Serial/SerialWindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazaar/Serial/SerialWindows.cpp b/bazaar/Serial/SerialWindows.cpp index 52bdfa64d..6d7004290 100644 --- a/bazaar/Serial/SerialWindows.cpp +++ b/bazaar/Serial/SerialWindows.cpp @@ -44,7 +44,7 @@ Serial::~Serial() bool Serial::Open(String const &port, dword speed, byte parity, byte bits, byte stopBits) { // open the device - fd = CreateFile(port, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); + fd = CreateFile("\\\\.\\" + port, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); if(fd == INVALID_HANDLE_VALUE) { isError = true;