From: Sebastian Lackner Subject: windowscodecs: Fix init of LONGLONG variable with a negative value in TGA decoder. Message-Id: <54F6578E.2050405@fds-team.de> Date: Wed, 04 Mar 2015 01:53:34 +0100 From: Christian Costa --- dlls/windowscodecs/tgaformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) From 69557abc4096f15eac7cf0dc7c8201c458598511 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Thu, 15 Jan 2015 09:57:18 +0100 Subject: windowscodecs: Fix init of LONGLONG variable with a negative value in TGA decoder. --- dlls/windowscodecs/tgaformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/windowscodecs/tgaformat.c b/dlls/windowscodecs/tgaformat.c index f2a867a..2b8cb1a 100644 --- a/dlls/windowscodecs/tgaformat.c +++ b/dlls/windowscodecs/tgaformat.c @@ -292,7 +292,7 @@ static HRESULT WINAPI TgaDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p This->image_offset = This->colormap_offset + This->colormap_length; /* Read footer if there is one */ - seek.QuadPart = -sizeof(tga_footer); + seek.QuadPart = -(LONGLONG)sizeof(tga_footer); hr = IStream_Seek(pIStream, seek, STREAM_SEEK_END, NULL); if (SUCCEEDED(hr)) { -- 2.3.0