Skip to content

Conversation

@ctarsjp
Copy link
Contributor

@ctarsjp ctarsjp commented Mar 28, 2025

v1.6.3 breaks serial port enumeration by reading registry value names instead of registry values as it was in <=v1.6.2.

image

This results in GetPortsList() function returning \\Device\\USBSER001, etc. instead of COMXX.

This pull request fixes nativeGetPortsList to read the actual values, which is consistent with previous versions.

It also modifies nativeOpen to check for if the port name has \\.\ prefix, which was previously added unconditionally, which caused open to fail if the port name already had that prefix.

Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cmaglie
Copy link
Member

cmaglie commented Mar 28, 2025

I've tried this on two Win machines one real and one VM.
I've reproduced the bug only on the VM, but this patch works on both (it didn't break the real PC). 👍🏼

@cmaglie cmaglie merged commit f0e4a45 into bugst:master Mar 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants