From 6eed3289d00c67bfc20d443496844066c03e8dd3 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 6 Jan 2016 13:15:01 +0100 Subject: [PATCH] Fixed: Big endian number --- code/ryzom/client/src/r2/dmc/client_edition_module.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/ryzom/client/src/r2/dmc/client_edition_module.cpp b/code/ryzom/client/src/r2/dmc/client_edition_module.cpp index 8e2cb5695..073be77cc 100644 --- a/code/ryzom/client/src/r2/dmc/client_edition_module.cpp +++ b/code/ryzom/client/src/r2/dmc/client_edition_module.cpp @@ -1511,6 +1511,10 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m nlwarning("Error while reading %s", filename.c_str()); } +#ifdef NL_BIG_ENDIAN + NLMISC_BSWAP32(uncompressedFileLength); +#endif + fclose(file); // Test if data are not too big