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
This commit is contained in:
parent
93f3367f42
commit
dfafd67948
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue