diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-11-16 17:30:02 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-11-16 17:30:02 +0000 |
commit | dfafd67948f78baa320ba8c03b0c5d11ab788ad0 (patch) | |
tree | a6e5695bad139414753cdc9878976aab9365a7ed /apps | |
parent | 93f3367f42326b688968d25607c2cc910eedb815 (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/demac/wavwrite.c | 4 |
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 @@ 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; |