mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
edd88164b3
commit
338da398b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue