From dfafd67948f78baa320ba8c03b0c5d11ab788ad0 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 16 Nov 2008 17:30:02 +0000 Subject: Make the standalone decoder actually work on Windows (need to open the output file in binary mode). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19119 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/demac/wavwrite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/codecs/demac/wavwrite.c b/apps/codecs/demac/wavwrite.c index 5fb82e148a..5047c4cabc 100644 --- a/apps/codecs/demac/wavwrite.c +++ b/apps/codecs/demac/wavwrite.c @@ -2,7 +2,7 @@ demac - A Monkey's Audio decoder -$Id:$ +$Id$ Copyright (C) Dave Chapman 2007 @@ -57,7 +57,7 @@ int open_wav(struct ape_ctx_t* ape_ctx, char* filename) int filesize; int bytespersample; - fd=creat(filename,0644); + fd=open(filename, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 0644); if (fd < 0) return fd; -- cgit v1.2.3