summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-04 19:36:57 +0200
committerAndras Timar <atimar@suse.com>2013-10-16 14:54:45 +0200
commit86b94ce821f12a4bdd15b9e3f5333f5dbe563fd8 (patch)
tree7e0a16c94de027184c2e04177cb79178b5d5de80
parente5a1c6461d4ca4d82925dccabd91e1c08bb560b6 (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.cxx3
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()