diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 05:50:20 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 05:50:20 +0000 |
| commit | b6f67a8c10574ab07aab25e263ae29bb21e42e87 (patch) | |
| tree | 539e6dd4256d5b747adf75c40276975280ebcaf7 | |
| parent | 81f0b58e46a706ca934b6cfda892a5dfebe57a79 (diff) | |
| download | rockbox-b6f67a8c10574ab07aab25e263ae29bb21e42e87.zip rockbox-b6f67a8c10574ab07aab25e263ae29bb21e42e87.tar.gz rockbox-b6f67a8c10574ab07aab25e263ae29bb21e42e87.tar.bz2 rockbox-b6f67a8c10574ab07aab25e263ae29bb21e42e87.tar.xz | |
The win32 open() was called with the wrong flags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4845 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | uisimulator/common/io.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index e5b2f92..cb8064c 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -54,6 +54,7 @@ struct mydir { typedef struct mydir MYDIR; +#ifndef WIN32 static unsigned int rockbox2sim(int opt) { int newopt = 0; @@ -70,7 +71,7 @@ static unsigned int rockbox2sim(int opt) return newopt; } - +#endif MYDIR *sim_opendir(const char *name) { @@ -132,14 +133,16 @@ void sim_closedir(MYDIR *dir) int sim_open(const char *name, int o) { char buffer[256]; /* sufficiently big */ +#ifndef WIN32 int opts = rockbox2sim(o); +#endif if(name[0] == '/') { sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); debugf("We open the real file '%s'\n", buffer); #ifdef WIN32 - return (open)(buffer, opts); + return (open)(buffer, o); #else return (open)(buffer, opts, 0666); #endif |