mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Fixed EIO_List to prevent crash when a device has no COM port (#2325)
This commit is contained in:
parent
494fd0f097
commit
3ca00ceeed
1 changed files with 1 additions and 0 deletions
|
|
@ -798,6 +798,7 @@ void EIO_List(uv_work_t* req) {
|
|||
char serialNumber[MAX_REGISTRY_KEY_SIZE];
|
||||
bool isCom;
|
||||
while (true) {
|
||||
isCom = false;
|
||||
pnpId = NULL;
|
||||
vendorId = NULL;
|
||||
productId = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue