diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-01-17 16:52:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-17 16:52:46 +0000 |
commit | 6d6a243893532de40f636dbdc61d10c04ab019fb (patch) | |
tree | 3b73776ef0afd3b4fde0fa0f9d8ad1b3a1e68f39 /testing/embedder_test.cpp | |
parent | f855489794ffd575d073eb575b04ac1ca1f286c2 (diff) | |
download | pdfium-6d6a243893532de40f636dbdc61d10c04ab019fb.tar.xz |
Pass ios_base::binary so WriteBitmapToPng works on Windows.
Bug: pdfium:981
Change-Id: I87d750cd8de079dfc61923fee58af42518f5b6d1
Reviewed-on: https://pdfium-review.googlesource.com/23090
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r-- | testing/embedder_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 09a8533902..b434353bd9 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -446,7 +446,7 @@ void EmbedderTest::WriteBitmapToPng(FPDF_BITMAP bitmap, ASSERT_LT(filename.size(), 256u); std::ofstream png_file; - png_file.open(filename); + png_file.open(filename, std::ios_base::out | std::ios_base::binary); png_file.write(reinterpret_cast<char*>(&png_encoding.front()), png_encoding.size()); ASSERT_TRUE(png_file.good()); |