mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
internal/glfwwin: bug fix: wrong type casts (TlsGetValue)
This commit is contained in:
parent
93731673ad
commit
9a1eb0b124
@ -1772,7 +1772,7 @@ func _TlsFree(dwTlsIndex uint32) error {
|
|||||||
|
|
||||||
func _TlsGetValue(dwTlsIndex uint32) (uintptr, error) {
|
func _TlsGetValue(dwTlsIndex uint32) (uintptr, error) {
|
||||||
r, _, e := procTlsGetValue.Call(uintptr(dwTlsIndex))
|
r, _, e := procTlsGetValue.Call(uintptr(dwTlsIndex))
|
||||||
if int32(r) == 0 && !errors.Is(e, windows.ERROR_SUCCESS) {
|
if r == 0 && !errors.Is(e, windows.ERROR_SUCCESS) {
|
||||||
return 0, fmt.Errorf("glfwwin: TlsGetValue failed: %w", e)
|
return 0, fmt.Errorf("glfwwin: TlsGetValue failed: %w", e)
|
||||||
}
|
}
|
||||||
return r, nil
|
return r, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user