From cc95915a3c2a09fa44b7a9bc5424ecb60b060a6c Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Thu, 15 Jan 2015 09:57:18 +0100 Subject: [PATCH] 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 f2a867aace0..2b8cb1a3cd6 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)) {