Skip to content

Commit 3ca00ce

Browse files
Fixed EIO_List to prevent crash when a device has no COM port (#2325)
1 parent 494fd0f commit 3ca00ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/bindings/src/serialport_win.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ void EIO_List(uv_work_t* req) {
798798
char serialNumber[MAX_REGISTRY_KEY_SIZE];
799799
bool isCom;
800800
while (true) {
801+
isCom = false;
801802
pnpId = NULL;
802803
vendorId = NULL;
803804
productId = NULL;

0 commit comments

Comments
 (0)