From 12c569cdfd56847b8b241c20d2b2020be26d8324 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sat, 5 Jul 2014 23:35:22 +0100 Subject: Open EPOC16 files for random access, since we may need it Fixes support request #20; thanks to Peter Maud for the patch --- lib/rfsv16.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3