windowscodecs: Fix init of LONGLONG variable with a negative value in TGA decoder.
This commit is contained in:
parent
317fc7aaf8
commit
cc95915a3c
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue