Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1913)

Unified Diff: dm/DM.cpp

Issue 1303063008: DM: "wb" (binary mode) may matter on Windows (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index b93f9d80788e200a2d0658a8d7b70e6c5fdeabc6..870b97a4efff97d3b68ea30f7f86504f827bda4a 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -495,7 +495,7 @@ static bool dump_png(SkBitmap bitmap, const char* path, const char* md5) {
// We don't need bitmap anymore. Might as well drop our ref.
bitmap.reset();
- FILE* f = fopen(path, "w");
+ FILE* f = fopen(path, "wb");
if (!f) { return false; }
png_structp png = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698