Fix thumbnail loading on Windows

This commit is contained in:
James Turner
2017-07-28 12:05:35 +01:00
parent 34c215ad83
commit 69ba2617d2

View File

@@ -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();
}