Skip to content

Commit

Permalink
Merge pull request #440 from kivy/fix_win_wifi
Browse files Browse the repository at this point in the history
Add missing parameter for Windows' WlanCloseHandle()
  • Loading branch information
KeyWeeUsr authored Oct 14, 2018
2 parents e95cac0 + 9f4555e commit 415b218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plyer/platforms/win/libs/wifi_defs.py
Original file line number Diff line number Diff line change
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 415b218

Please sign in to comment.