Module: wine Branch: master Commit: cc95915a3c2a09fa44b7a9bc5424ecb60b060a6c URL: http://source.winehq.org/git/wine.git/?a=commit;h=cc95915a3c2a09fa44b7a9bc54... Author: Christian Costa <titan.costa(a)gmail.com> Date: Thu Jan 15 09:57:18 2015 +0100 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)) {