diff options
author | pixel <pixel> | 2006-07-17 16:07:57 +0000 |
---|---|---|
committer | pixel <pixel> | 2006-07-17 16:07:57 +0000 |
commit | 6708600c340f39ecb763f905da644aafb4a0139b (patch) | |
tree | c8110bf309d8dfa023b3ce3ef6dca113b9eb559a /lib | |
parent | 88e27e8b5befa386b090888d140c852664519c66 (diff) |
I hate windows API.... AAAAAARGHHH!!!
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Output.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Output.cc b/lib/Output.cc index c041ad4..f3394ef 100644 --- a/lib/Output.cc +++ b/lib/Output.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Output.cc,v 1.24 2005-12-01 13:18:02 pixel Exp $ */ +/* $Id: Output.cc,v 1.25 2006-07-17 16:07:57 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -70,7 +70,7 @@ int Output::wrapopen(const String & n, int create, int trunc) { (trunc ? O_TRUNC : 0) | O_WRONLY, 00666); #else #ifdef NO_HFILE - return _creat(n.to_charp(), _S_IREAD | _S_IWRITE); + return _open(n.to_charp(), (create ? _O_CREAT : 0) | (trunc ? _O_TRUNC : 0) | _O_BINARY | _O_WRONLY, _S_IREAD | _S_IWRITE); #else DWORD dwCreationDisposition; switch ((create ? 1 : 0) | (trunc ? 2 : 0)) { |