Skip to content

Commit

Permalink
Add missing parameter for Windows' WlanCloseHandle()
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Oct 14, 2018
1 parent e95cac0 commit 9f4555e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plyer/platforms/win/libs/wifi_defs.py
Expand Up @@ -331,7 +331,7 @@ def _connect(network, parameters):
None)
if wlan:
sys_exit(FormatError(wlan))
WlanCloseHandle(ClientHandle)
WlanCloseHandle(ClientHandle, None)
finally:
WlanFreeMemory(pInterfaceList)

Expand Down Expand Up @@ -374,7 +374,7 @@ def _disconnect():
)
if wlan:
sys_exit(FormatError(wlan))
WlanCloseHandle(ClientHandle)
WlanCloseHandle(ClientHandle, None)

finally:
WlanFreeMemory(pInterfaceList)
Expand Down Expand Up @@ -449,7 +449,7 @@ def _start_scanning():

if wlan:
sys_exit(FormatError(wlan))
WlanCloseHandle(ClientHandle)
WlanCloseHandle(ClientHandle, None)

finally:
WlanFreeMemory(pAvailableNetworkList)
Expand Down

0 comments on commit 9f4555e

Please sign in to comment.