Skip to content

Commit

Permalink
engine: platform: sdl: fix incorrect HICON cast in SetClassLongPtr call
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Mar 21, 2023
1 parent f8cf2c8 commit 098c4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/platform/sdl/vid_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ static void WIN_SetWindowIcon( HICON ico )

if( SDL_GetWindowWMInfo( host.hWnd, &wminfo ) )
{
SetClassLongPtr( wminfo.info.win.window, GCLP_HICON, (LONG)ico );
SetClassLongPtr( wminfo.info.win.window, GCLP_HICON, (LONG_PTR)ico );
}
}
#endif
Expand Down

0 comments on commit 098c4c0

Please sign in to comment.