summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-11-16 17:30:02 +0000
committerJens Arnold <amiconn@rockbox.org>2008-11-16 17:30:02 +0000
commitdfafd67948f78baa320ba8c03b0c5d11ab788ad0 (patch)
treea6e5695bad139414753cdc9878976aab9365a7ed
parent93f3367f42326b688968d25607c2cc910eedb815 (diff)
downloadrockbox-dfafd67948f78baa320ba8c03b0c5d11ab788ad0.tar.gz
rockbox-dfafd67948f78baa320ba8c03b0c5d11ab788ad0.zip
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
-rw-r--r--apps/codecs/demac/wavwrite.c4
1 files 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 @@
2 2
3demac - A Monkey's Audio decoder 3demac - A Monkey's Audio decoder
4 4
5$Id:$ 5$Id$
6 6
7Copyright (C) Dave Chapman 2007 7Copyright (C) Dave Chapman 2007
8 8
@@ -57,7 +57,7 @@ int open_wav(struct ape_ctx_t* ape_ctx, char* filename)
57 int filesize; 57 int filesize;
58 int bytespersample; 58 int bytespersample;
59 59
60 fd=creat(filename,0644); 60 fd=open(filename, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 0644);
61 if (fd < 0) 61 if (fd < 0)
62 return fd; 62 return fd;
63 63