From: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- dlls/windowscodecs/metadatahandler.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dlls/windowscodecs/metadatahandler.c b/dlls/windowscodecs/metadatahandler.c index 8f3c19e3aca..c27a055b60b 100644 --- a/dlls/windowscodecs/metadatahandler.c +++ b/dlls/windowscodecs/metadatahandler.c @@ -1406,17 +1406,12 @@ static HRESULT load_ifd_metadata_internal(MetadataHandler *handler, IStream *inp MetadataItem *result; USHORT count, i; struct IFD_entry *entry; - BOOL native_byte_order = TRUE; + BOOL native_byte_order; ULONG bytesread; TRACE("\n"); -#ifdef WORDS_BIGENDIAN - if (persist_options & WICPersistOptionLittleEndian) -#else - if (persist_options & WICPersistOptionBigEndian) -#endif - native_byte_order = FALSE; + native_byte_order = !(persist_options & WICPersistOptionBigEndian); hr = IStream_Read(input, &count, sizeof(count), &bytesread); if (bytesread != sizeof(count)) hr = E_FAIL; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8083