Skip to content

Commit

Permalink
chore: 使用sys/windows替换syscall包
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Jan 19, 2024
1 parent 93c7445 commit ebca1f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ require (
go.nanomsg.org/mangos v2.0.0+incompatible
go.nanomsg.org/mangos/v3 v3.4.2
golang.org/x/net v0.20.0
golang.org/x/sys v0.16.0
google.golang.org/api v0.156.0
google.golang.org/protobuf v1.32.0
)
Expand Down Expand Up @@ -77,7 +78,6 @@ require (
golang.org/x/mod v0.14.0 // indirect
golang.org/x/oauth2 v0.16.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.17.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions wcferry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"path"
"path/filepath"
"strings"
"syscall"
"time"

"github.com/opentdp/go-helper/filer"
"github.com/opentdp/go-helper/logman"
"github.com/opentdp/go-helper/onquit"
"golang.org/x/sys/windows"
)

//go:embed libs
Expand Down Expand Up @@ -88,7 +88,7 @@ func (c *Client) DisableReceiver(ks ...string) error {
// 调用 sdk.dll 中的函数
func (c *Client) sdkCall(fn string, a ...uintptr) error {
// 加载 sdk.dll
sdk, err := syscall.LoadDLL(c.sdkLibrary)
sdk, err := windows.LoadDLL(c.sdkLibrary)
if err != nil {
logman.Info("failed to load sdk.dll", "error", err)
return err
Expand Down

0 comments on commit ebca1f9

Please sign in to comment.