mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 11:45:13 -05:00
Fixed memory corruption on AMD64
This commit is contained in:
@@ -876,7 +876,7 @@ X11_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
|
||||
|
||||
/* Set the _NET_WM_ICON property */
|
||||
propsize = 2 + (icon->w * icon->h);
|
||||
propdata = SDL_malloc(propsize * sizeof(Uint32));
|
||||
propdata = SDL_malloc(propsize * sizeof(long));
|
||||
if (propdata) {
|
||||
int x, y;
|
||||
Uint32 *src;
|
||||
|
||||
Reference in New Issue
Block a user