diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-19 23:42:02 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-19 23:42:02 -0800 |
commit | c740946b5871745e72444136fd229304c9658b41 (patch) | |
tree | 12e910bcf318e9f5f96a9f427716b90f8e5bfe3a | |
parent | 1fa5b7d41ad3ad3991852515ace597d4cae909b1 (diff) |
Fixing Output's open.
-rw-r--r-- | src/Output.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Output.cc b/src/Output.cc index 261884e..0d5972d 100644 --- a/src/Output.cc +++ b/src/Output.cc @@ -40,7 +40,7 @@ class AsyncOpOpen : public Balau::AsyncOperation { AsyncOpOpen(const char * path, bool truncate, cbResults_t * results) : m_path(path), m_truncate(truncate), m_results(results) { } virtual void run() { #ifdef _MSC_VER - const ssize_t r = m_results->result = _open(m_path, O_WRONLY | O_CREAT | (m_truncate ? O_TRUNC : 0), 0755); + const ssize_t r = m_results->result = _open(m_path, O_WRONLY | O_CREAT | (m_truncate ? O_TRUNC : 0) | O_BINARY, 0755); #else const ssize_t r = m_results->result = open(m_path, O_WRONLY | O_CREAT | (m_truncate ? O_TRUNC : 0), 0755); #endif |