diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-04 19:36:57 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-10-16 14:54:45 +0200 |
commit | 86b94ce821f12a4bdd15b9e3f5333f5dbe563fd8 (patch) | |
tree | 7e0a16c94de027184c2e04177cb79178b5d5de80 | |
parent | e5a1c6461d4ca4d82925dccabd91e1c08bb560b6 (diff) |
fdo#67534: try to avoid file locking in Explorer shell extensions
Change-Id: I287395f6c25b1bfb9b9482166ae6f34d9af8f455
-rw-r--r-- | shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx index 5ab0c20b1305..f41aa0966777 100644 --- a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx +++ b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx @@ -115,7 +115,8 @@ long BufferStream::sseek (long offset, int origin) FileStream::FileStream(const char *filename) : file(0) { - file = fopen(filename, "rb"); + // fdo#67534: avoid locking to not interfere with soffice opening the file + file = _fsopen(filename, "rb", _SH_DENYNO); } FileStream::~FileStream() |