Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows com port prefix (wjwwood#179)
The check in `_prefix_port_if_needed` does not work, as it's currently comparing the whole input string to the prefix. As a consequence, port strings will be prefixed, even if they're already prefixed. This commit changes the call to `wstring::compare` to use an overload that compares a substring of the input string only.
- Loading branch information