From 69ba2617d24e8962c252b83187b975ebfbd1f5f3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 28 Jul 2017 12:05:35 +0100 Subject: [PATCH] Fix thumbnail loading on Windows --- simgear/package/Root.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/package/Root.cxx b/simgear/package/Root.cxx index f38f7e93..ca567218 100644 --- a/simgear/package/Root.cxx +++ b/simgear/package/Root.cxx @@ -217,7 +217,7 @@ public: } SGPath cachePath = path / "ThumbnailCache" / (hash + url.substr(pos)); - sg_ofstream fstream(cachePath, std::ios::out | std::ios::trunc); + sg_ofstream fstream(cachePath, std::ios::out | std::ios::trunc | std::ios::binary); fstream.write(imageBytes.data(), imageBytes.size()); fstream.close(); }