diff --git a/cmd/mksyscall/main.go b/cmd/mksyscall/main.go index 8f7ecd0..eec3b93 100644 --- a/cmd/mksyscall/main.go +++ b/cmd/mksyscall/main.go @@ -103,6 +103,6 @@ func generateSyscalls() []byte { log.Fatal(err) } zsys := bout.Bytes() - zsys = bytes.Replace(zsys, []byte("\"internal/syscall/windows/sysdll\""), []byte("\"github.com/microsoft/go-crypto-winnative/internal/sysdll\""), -1) + zsys = bytes.ReplaceAll(zsys, []byte("\"internal/syscall/windows/sysdll\""), []byte("\"github.com/microsoft/go-crypto-winnative/internal/sysdll\"")) return zsys }