diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-05-20 04:28:36 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-05-20 04:28:36 (GMT) |
commit | 5467c3f8eb6f7d2b5c5a72b9c2e0fd94ae325c24 (patch) | |
tree | 397f0704fc3e7769d8614e243c0f30d35139496f /src/plugins/bearer/nativewifi/qnativewifiengine.h | |
parent | 178a4e12da0601ecc662851e5bf7f124932e1a12 (diff) | |
download | Qt-5467c3f8eb6f7d2b5c5a72b9c2e0fd94ae325c24.zip Qt-5467c3f8eb6f7d2b5c5a72b9c2e0fd94ae325c24.tar.gz Qt-5467c3f8eb6f7d2b5c5a72b9c2e0fd94ae325c24.tar.bz2 |
Fix crash on exit in native wifi plugin on Vista+ when run in debugger.
Close the wlanapi handle before main function returns.
Diffstat (limited to 'src/plugins/bearer/nativewifi/qnativewifiengine.h')
-rw-r--r-- | src/plugins/bearer/nativewifi/qnativewifiengine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/bearer/nativewifi/qnativewifiengine.h b/src/plugins/bearer/nativewifi/qnativewifiengine.h index 3b21985..0e9576b 100644 --- a/src/plugins/bearer/nativewifi/qnativewifiengine.h +++ b/src/plugins/bearer/nativewifi/qnativewifiengine.h @@ -91,12 +91,13 @@ public: QNetworkConfigurationPrivatePointer defaultConfiguration(); - inline bool available() const { return handle != 0; } + bool available(); bool requiresPolling() const; -public Q_SLOTS: +private Q_SLOTS: void scanComplete(); + void closeHandle(); private: Qt::HANDLE handle; |