diff --git a/internal/wgwindows/client_windows.go b/internal/wgwindows/client_windows.go index 2196981..57922e0 100644 --- a/internal/wgwindows/client_windows.go +++ b/internal/wgwindows/client_windows.go @@ -63,7 +63,7 @@ func (c *Client) refreshInterfaceCache() error { } var status, problemCode uint32 ret := windows.CM_Get_DevNode_Status(&status, &problemCode, devInfoData.DevInst, 0) - if ret != nil || (status&windows.DN_DRIVER_LOADED|windows.DN_STARTED) != windows.DN_DRIVER_LOADED|windows.DN_STARTED { + if ret != nil || status&(windows.DN_DRIVER_LOADED|windows.DN_STARTED) != windows.DN_DRIVER_LOADED|windows.DN_STARTED { continue } instanceId, err := windows.SetupDiGetDeviceInstanceId(devInfo, devInfoData)