diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-04 20:13:06 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-04 20:13:06 +0000 |
commit | 8599b071139303eb9b994b3b6450aa3de885ecc7 (patch) | |
tree | 6259c83c9b92250403ffb6391692ba6404d012d1 /uisimulator/common/io.c | |
parent | 82e08535433d11c54aa9161f489aeecc2dd0db2b (diff) | |
download | rockbox-8599b071139303eb9b994b3b6450aa3de885ecc7.tar.gz rockbox-8599b071139303eb9b994b3b6450aa3de885ecc7.zip |
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
Diffstat (limited to 'uisimulator/common/io.c')
-rw-r--r-- | uisimulator/common/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index e18d8e6a57..127e8e3e2a 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c | |||
@@ -323,7 +323,7 @@ void *sim_codec_load_ram(char* codecptr, int size, | |||
323 | /* We have to create the dynamic link library file from ram | 323 | /* We have to create the dynamic link library file from ram |
324 | so we could simulate the codec loading. */ | 324 | so we could simulate the codec loading. */ |
325 | 325 | ||
326 | fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | 326 | fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRWXU); |
327 | if (fd < 0) { | 327 | if (fd < 0) { |
328 | DEBUGF("failed to open for write: %s\n", path); | 328 | DEBUGF("failed to open for write: %s\n", path); |
329 | return NULL; | 329 | return NULL; |