summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-04 19:36:57 +0200
committerAndras Timar <andras.timar@collabora.com>2013-10-16 05:55:02 -0700
commit63b2f53c88ea158d8266719187bcf6351dc41c88 (patch)
tree2ebb949f0e9ad129e99ca9072335e68f816fa775
parentd359c32a9477b1d47cf42ba7ac409c41feffdea1 (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 3b77d285d34e..f1fb3213cf94 100644
--- a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
+++ b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
@@ -106,7 +106,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()