Fixed the codec loading problem in the Win32 SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8563 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
82e0853543
commit
8599b07113
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ void *sim_codec_load_ram(char* codecptr, int size,
|
|||
/* We have to create the dynamic link library file from ram
|
||||
so we could simulate the codec loading. */
|
||||
|
||||
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
|
||||
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRWXU);
|
||||
if (fd < 0) {
|
||||
DEBUGF("failed to open for write: %s\n", path);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue