diff options
-rw-r--r-- | src/plugins/bearer/nativewifi/qnativewifiengine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/bearer/nativewifi/qnativewifiengine.cpp b/src/plugins/bearer/nativewifi/qnativewifiengine.cpp index 16c2239..d5beeff 100644 --- a/src/plugins/bearer/nativewifi/qnativewifiengine.cpp +++ b/src/plugins/bearer/nativewifi/qnativewifiengine.cpp @@ -501,6 +501,11 @@ void QNativeWifiEngine::requestUpdate() return; } + if (interfaceList->dwNumberOfItems == 0) { + local_WlanFreeMemory(interfaceList); + return; + } + bool requested = false; for (unsigned int i = 0; i < interfaceList->dwNumberOfItems; ++i) { result = local_WlanScan(handle, &interfaceList->InterfaceInfo[i].InterfaceGuid, 0, 0, 0); |