From 6708600c340f39ecb763f905da644aafb4a0139b Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 17 Jul 2006 16:07:57 +0000 Subject: I hate windows API.... AAAAAARGHHH!!! --- lib/Output.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 #include @@ -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)) { -- cgit v1.2.3