aboutsummaryrefslogtreecommitdiffstats
path: root/setupapi/zsetupapi_windows.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-02-04 08:22:49 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-05 12:59:42 +0100
commit90b6938ca04d49240ddcd1a50650489f3fe3f26b (patch)
tree15310940e61e58051c468d6406cb7374ca912cd1 /setupapi/zsetupapi_windows.go
parentAdd support for setupapi.SetupDiCallClassInstaller() (diff)
downloadwireguard-go-90b6938ca04d49240ddcd1a50650489f3fe3f26b.tar.xz
wireguard-go-90b6938ca04d49240ddcd1a50650489f3fe3f26b.zip
Stop checking for valid handle in DevInfo.Close()
User should not have called or deferred the Close() method should SetupDiGetClassDevsEx() return an error (and invalid handle). And even if user does that, a SetupDiDestroyDeviceInfoList(INVALID_HANDLE_VALUE) is harmless. It just returns ERROR_INVALID_HANDLE - we have a unit test for this in TestSetupDiDestroyDeviceInfoList(). Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions