1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

Pass LPCWSTR to CreateFile in Windows impl

This should fix #29
This commit is contained in:
William Woodall 2013-07-30 10:31:15 -07:00
parent ffc3028289
commit 82884ca519

View File

@ -48,7 +48,8 @@ Serial::SerialImpl::open ()
throw SerialException ("Serial port already open.");
}
fd_ = CreateFile(port_.c_str(),
LPCWSTR lp_port = port_.c_str();
fd_ = CreateFile(lp_port,
GENERIC_READ | GENERIC_WRITE,
0,
0,