diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-02 19:17:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-02 22:48:55 +0100 |
commit | 6fd66ad94040d46904eba8f2ac2b4270787a756a (patch) | |
tree | b48da4a901ba79f3d6e4c2c24f5a9fe0142132f3 | |
parent | edf79cacbeaef0080588f00e90e6c1b35a70d17e (diff) |
we're either reading or writing, not both
Change-Id: I6b004c7f7957f3843d37063b182cac0cd07e5f44
-rw-r--r-- | vcl/source/gdi/gfxlink.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx index 8921aaf081f3..a0a69ef2d82c 100644 --- a/vcl/source/gdi/gfxlink.cxx +++ b/vcl/source/gdi/gfxlink.cxx @@ -141,7 +141,7 @@ void GfxLink::SwapOut() if (!aURL.isEmpty()) { std::shared_ptr<GfxLink::SwapOutData> pSwapOut = std::make_shared<SwapOutData>(aURL); // aURL is removed in the destructor - SvStream* pOStm = aTempFile.GetStream(StreamMode::READWRITE | StreamMode::SHARE_DENYWRITE); + SvStream* pOStm = aTempFile.GetStream(StreamMode::STD_WRITE); if (pOStm) { pOStm->WriteBytes(mpSwapInData.get(), mnSwapInDataSize); @@ -266,7 +266,7 @@ std::shared_ptr<sal_uInt8> GfxLink::GetSwapInData() const std::shared_ptr<sal_uInt8> pData; - SvFileStream aFileStream(mpSwapOutData->maURL, StreamMode::READWRITE); + SvFileStream aFileStream(mpSwapOutData->maURL, StreamMode::STD_READ); pData = o3tl::make_shared_array<sal_uInt8>(mnSwapInDataSize); aFileStream.ReadBytes(pData.get(), mnSwapInDataSize); bool bError = (ERRCODE_NONE != aFileStream.GetError()); |