diff options
| -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 e18d8e6..127e8e3 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -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; |