From: Nikolay Sivov nsivov@codeweavers.com
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/windowscodecs/libtiff.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/dlls/windowscodecs/libtiff.c b/dlls/windowscodecs/libtiff.c index cc66339a7e0..4ff00ded1b6 100644 --- a/dlls/windowscodecs/libtiff.c +++ b/dlls/windowscodecs/libtiff.c @@ -1164,7 +1164,6 @@ static HRESULT CDECL tiff_decoder_get_metadata_blocks(struct decoder *iface, { struct tiff_decoder *This = impl_from_decoder(iface); HRESULT hr; - BOOL byte_swapped; struct decoder_block result;
hr = tiff_decoder_select_frame(This, frame); @@ -1176,12 +1175,7 @@ static HRESULT CDECL tiff_decoder_get_metadata_blocks(struct decoder *iface, result.offset = TIFFCurrentDirOffset(This->tiff); result.length = 0;
- byte_swapped = TIFFIsByteSwapped(This->tiff); -#ifdef WORDS_BIGENDIAN - result.options = byte_swapped ? WICPersistOptionLittleEndian : WICPersistOptionBigEndian; -#else - result.options = byte_swapped ? WICPersistOptionBigEndian : WICPersistOptionLittleEndian; -#endif + result.options = TIFFIsByteSwapped(This->tiff) ? WICPersistOptionBigEndian : WICPersistOptionLittleEndian; result.options |= WICPersistOptionNoCacheStream|DECODER_BLOCK_FULL_STREAM|DECODER_BLOCK_READER_CLSID; result.reader_clsid = CLSID_WICIfdMetadataReader;