mbahar94 / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

segfault when removing usb bar and QextSerialEnumerator has notifications enabled #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of QextSerialPort are you using?
git 30cb8d197849903ba8ecac791d9dfe14edee957e

What steps will reproduce the problem?
1. m_enumerator.setUpNotifications();
2. insert and remove usb bar (flash disk)
3. segfault at qextserialenumerator_win.cpp:141

::RegQueryValueEx() returned size = 0

Patch attached.

Original issue reported on code.google.com by sebastia...@gmail.com on 22 Jan 2013 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks

Original comment by dbzhang...@gmail.com on 23 Jan 2013 at 1:38