diff --git a/UI/update/shared-update.cpp b/UI/update/shared-update.cpp index ad8f778a1..a458592e1 100644 --- a/UI/update/shared-update.cpp +++ b/UI/update/shared-update.cpp @@ -68,7 +68,7 @@ try { static bool QuickReadFile(const char *file, std::string &data) try { - std::ifstream fileStream(file); + std::ifstream fileStream(file, std::ifstream::binary); if (!fileStream.is_open() || fileStream.fail()) throw strprintf("Failed to open file '%s': %s", file, strerror(errno));