]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
setupapi: Revise DrvInfoDetailData struct size calculation
authorSimon Rozman <simon@rozman.si>
Thu, 18 Apr 2019 08:37:04 +0000 (10:37 +0200)
committerSimon Rozman <simon@rozman.si>
Thu, 18 Apr 2019 08:39:22 +0000 (10:39 +0200)
commit5811447b382ce1197e9c76d676a65515309a5b60
treeb0a5ed9d7d8faa6cc5edf7b2d6c05d265125b8a2
parente0a8c22aa64d6a606cb03e3fd09eaa3e62a2f7c9
setupapi: Revise DrvInfoDetailData struct size calculation

Go adds trailing padding to DrvInfoDetailData struct in GOARCH=386 which
confuses SetupAPI expecting exactly sizeof(SP_DRVINFO_DETAIL_DATA).

Signed-off-by: Simon Rozman <simon@rozman.si>
tun/wintun/setupapi/setupapi_windows.go
tun/wintun/setupapi/types_windows.go