Fixed crash on Windows due to not ensuring file mode is binary for saving app icons

This commit is contained in:
2022-02-07 13:31:35 -06:00
parent a9f5c29a18
commit e267a17c76
2 changed files with 3 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ class W3DHub
if image_bmp?(image)
to_rgba32_blob(image).save(filename)
else
File.write(filename, image_data(image))
File.open(filename, "wb") { |f| f.write(image_data(image)) }
end
end
end