diff options
author | Reuben Thomas <rrt@sc3d.org> | 2014-07-05 23:35:22 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2014-07-05 23:37:39 +0100 |
commit | 12c569cdfd56847b8b241c20d2b2020be26d8324 (patch) | |
tree | 43e25deb7d54d850c2bdbf89dabb5cd9478f3841 | |
parent | cee38fc7d99665263ccf0a18009d8247326eb36f (diff) | |
download | plptools-12c569cdfd56847b8b241c20d2b2020be26d8324.tar.gz plptools-12c569cdfd56847b8b241c20d2b2020be26d8324.tar.bz2 plptools-12c569cdfd56847b8b241c20d2b2020be26d8324.zip |
Open EPOC16 files for random access, since we may need it
Fixes support request #20; thanks to Peter Maud for the patch
-rw-r--r-- | lib/rfsv16.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rfsv16.cc b/lib/rfsv16.cc index 6ded8b1..9577658 100644 --- a/lib/rfsv16.cc +++ b/lib/rfsv16.cc @@ -55,7 +55,8 @@ fopen(u_int32_t attr, const char *name, u_int32_t &handle) bufferStore a; string realName = convertSlash(name); - a.addWord(attr & 0xFFFF); + // Allow random access, rather than forcing the caller to ask for it + a.addWord((P_FRANDOM | attr) & 0xFFFF); a.addStringT(realName.c_str()); if (!sendCommand(FOPEN, a)) return E_PSI_FILE_DISC; |