aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Ben Gotow <bengotow@gmail.com>2017-10-30 12:26:25 -0700
committerGravatar HoĆ  V. DINH <dinh.viet.hoa@gmail.com>2017-10-30 12:26:25 -0700
commitbd8c5f14551b9d3f5b61b315962275d859a6e3b0 (patch)
tree92fa821d26e391148f58250429182ab2ae444c01
parent459be56d06c5d6c4f7e63e11170fb6f6b6c68715 (diff)
On Windows, make fopen use provided `mode` (#1681)
-rw-r--r--src/core/basetypes/MCWin32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/basetypes/MCWin32.cpp b/src/core/basetypes/MCWin32.cpp
index 0b9b6ea0..e22ef6a5 100644
--- a/src/core/basetypes/MCWin32.cpp
+++ b/src/core/basetypes/MCWin32.cpp
@@ -3,7 +3,7 @@
FILE * mailcore::win32_fopen(const char * filename, const char * mode)
{
FILE * f = NULL;
- int r = fopen_s(&f, filename, "rb");
+ int r = fopen_s(&f, filename, mode);
if (r != 0) {
return NULL;
}