gdiplus: Avoid shift overflow in get_gif_background_color.

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gerald Pfeifer 2015-10-19 22:06:42 +02:00 committed by Alexandre Julliard
parent ad4057803d
commit 8f5b50d46b
1 changed files with 1 additions and 1 deletions

View File

@ -3838,7 +3838,7 @@ static DWORD get_gif_background_color(GpBitmap *bitmap)
if(bitmap->prop_item[i].id == PropertyTagGlobalPalette) {
if(bitmap->prop_item[i].length/3 > bgcolor_idx) {
BYTE *color = ((BYTE*)bitmap->prop_item[i].value)+bgcolor_idx*3;
return color[2] + (color[1]<<8) + (color[0]<<16) + (0xff<<24);
return color[2] + (color[1]<<8) + (color[0]<<16) + (0xffu<<24);
}
break;
}