forked from len0rd/rockbox
regtools/qeditor: fix crash when hwstub device fails to open
Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
This commit is contained in:
parent
c35e4a4b7d
commit
1210de217e
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ bool HWStubDevice::Open()
|
||||||
if(m_hwdev == 0)
|
if(m_hwdev == 0)
|
||||||
{
|
{
|
||||||
libusb_close(m_handle);
|
libusb_close(m_handle);
|
||||||
|
m_handle = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue