From 3ca00ceeedf70f39b427785214c8516feabd5da4 Mon Sep 17 00:00:00 2001 From: caffeinatedbits <48131017+caffeinatedbits@users.noreply.github.com> Date: Wed, 29 Sep 2021 14:22:40 -0400 Subject: [PATCH] Fixed EIO_List to prevent crash when a device has no COM port (#2325) --- packages/bindings/src/serialport_win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bindings/src/serialport_win.cpp b/packages/bindings/src/serialport_win.cpp index ea9d5fac0..963483435 100644 --- a/packages/bindings/src/serialport_win.cpp +++ b/packages/bindings/src/serialport_win.cpp @@ -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;