解决获取无线列表时,数组越界问题

This commit is contained in:
ksn 2021-08-27 17:23:38 +08:00
parent 5d8a6f3b3d
commit d8de4ffb01
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ bool KyWirelessNetResource::getWifiNetwork(const QString &devIfaceName, const QS
if (!m_WifiNetworkList.contains(devIfaceName)) {
return false;
} else {
for (int index = 0; m_WifiNetworkList[devIfaceName].size(); index ++){
for (int index = 0; index < m_WifiNetworkList[devIfaceName].size(); index ++){
if (m_WifiNetworkList[devIfaceName].at(index).m_NetSsid == ssid) {
wirelessNetResource = m_WifiNetworkList[devIfaceName].at(index);
return true;