aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun/wintun_windows.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-02-07 22:09:18 +0100
committerSimon Rozman <simon@rozman.si>2019-02-07 22:43:02 +0100
commit6d2729dcccc7d02a2578ee28580b351769868b03 (patch)
treeff03127e8e7ae4d9cab7f06522b5fdf8055d9be6 /tun/wintun/wintun_windows.go
parentwintun: Detect if a foreign interface with the same name exists (diff)
downloadwireguard-go-6d2729dcccc7d02a2578ee28580b351769868b03.tar.xz
wireguard-go-6d2729dcccc7d02a2578ee28580b351769868b03.zip
setupapi: Rename SP_DEVINFO_DATA to DevInfoData
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r--tun/wintun/wintun_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/wintun/wintun_windows.go b/tun/wintun/wintun_windows.go
index f9fc309..b510d9a 100644
--- a/tun/wintun/wintun_windows.go
+++ b/tun/wintun/wintun_windows.go
@@ -357,7 +357,7 @@ func (wintun *Wintun) FlushInterface() error {
//
// checkReboot checks device install parameters if a system reboot is required.
//
-func checkReboot(deviceInfoSet setupapi.DevInfo, deviceInfoData *setupapi.SP_DEVINFO_DATA) (bool, error) {
+func checkReboot(deviceInfoSet setupapi.DevInfo, deviceInfoData *setupapi.DevInfoData) (bool, error) {
devInstallParams, err := deviceInfoSet.GetDeviceInstallParams(deviceInfoData)
if err != nil {
return false, err
@@ -379,7 +379,7 @@ func checkReboot(deviceInfoSet setupapi.DevInfo, deviceInfoData *setupapi.SP_DEV
//
// Function returns the network interface ID.
//
-func getInterfaceId(deviceInfoSet setupapi.DevInfo, deviceInfoData *setupapi.SP_DEVINFO_DATA, numAttempts int) (*windows.GUID, error) {
+func getInterfaceId(deviceInfoSet setupapi.DevInfo, deviceInfoData *setupapi.DevInfoData, numAttempts int) (*windows.GUID, error) {
if numAttempts < 1 {
return nil, fmt.Errorf("Invalid numAttempts (expected: >=1, provided: %v)", numAttempts)
}