Bazaar/SerialWindows : fixed opening ports greater than COM9

git-svn-id: svn://ultimatepp.org/upp/trunk@8937 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2015-09-16 12:22:21 +00:00
parent edd88164b3
commit 338da398b5

View file

@ -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;