mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
internal/glfwwin: bug fix: error values were not returned
This commit is contained in:
parent
0577a28aed
commit
6cd655b5ce
@ -1052,7 +1052,7 @@ func _DefWindowProcW(hWnd windows.HWND, uMsg uint32, wParam _WPARAM, lParam _LPA
|
||||
func _DestroyIcon(hIcon _HICON) error {
|
||||
r, _, e := procDestroyIcon.Call(uintptr(hIcon))
|
||||
if int32(r) == 0 {
|
||||
fmt.Errorf("glfwwin: DestroyIcon failed: %w", e)
|
||||
return fmt.Errorf("glfwwin: DestroyIcon failed: %w", e)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -1060,7 +1060,7 @@ func _DestroyIcon(hIcon _HICON) error {
|
||||
func _DestroyWindow(hWnd windows.HWND) error {
|
||||
r, _, e := procDestroyWindow.Call(uintptr(hWnd))
|
||||
if int32(r) == 0 {
|
||||
fmt.Errorf("glfwwin: DestroyWindow failed: %w", e)
|
||||
return fmt.Errorf("glfwwin: DestroyWindow failed: %w", e)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user