Skip to content

Commit

Permalink
Fix build break
Browse files Browse the repository at this point in the history
  • Loading branch information
corfe83 committed Oct 28, 2023
1 parent c0d9fa3 commit dc01de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steamworks_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (s steamFriends) SetRichPresence(key, value string) bool {
cvalue := append([]byte(value), 0)
defer runtime.KeepAlive(cvalue)

v, err := theLib.call(funcType_Bool_Ptr_Ptr_Ptr, flatAPI_ISteamFriends_SetRichPresence, uintptr(s), uintptr(unsafe.Pointer(ckey)), uintptr(unsafe.Pointer(cvalue)))
v, err := theLib.call(funcType_Bool_Ptr_Ptr_Ptr, flatAPI_ISteamFriends_SetRichPresence, uintptr(s), uintptr(unsafe.Pointer(&ckey[0])), uintptr(unsafe.Pointer(&cvalue[0])))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit dc01de2

Please sign in to comment.