diff options
author | Aron Xu <aron@debian.org> | 2012-09-18 01:15:22 +0800 |
---|---|---|
committer | Aron Xu <aron@debian.org> | 2012-09-18 01:15:22 +0800 |
commit | f660f9d2924c7549bc87e7f9b4ece7c9727b3682 (patch) | |
tree | 816b3ef0e89d1601803b5dc1b90b50ade0567043 /win32/wince | |
parent | d7372d053bbd1d58216fbb04d1771ffa4cc3e624 (diff) | |
download | libxml2-f660f9d2924c7549bc87e7f9b4ece7c9727b3682.tar.gz |
Imported Upstream version 2.9.0upstream/2.9.0
Diffstat (limited to 'win32/wince')
-rw-r--r-- | win32/wince/wincecompat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/win32/wince/wincecompat.c b/win32/wince/wincecompat.c index 1d8df87..bd49c57 100644 --- a/win32/wince/wincecompat.c +++ b/win32/wince/wincecompat.c @@ -34,11 +34,10 @@ int open(const char *filename,int oflag, ...) char mode[3]; /* mode[0] ="w/r/a" mode[1]="+" */ mode[2]=0; if ( oflag==(O_WRONLY|O_CREAT) ) - mode[0]="w"; + mode[0]='w'; else if (oflag==O_RDONLY) - mode[0]="r"; - return fopen(filename, mode); - + mode[0]='r'; + return (int) fopen(filename, mode); } int close(int handle) |