• Michael Stahl's avatar
    SfxMedium::GetOutputStream(): re-use existing XStream · 0c220608
    Michael Stahl yazdı
    The ScExportTest::testConditionalFormatExportXLSX() fails on Windows
    because of how SfxMedium handles its streams:
    1. SfxMedium::GetOutputStorage() creates some temp file
    2. SfxMedium::GetMedium_Impl() opens a XStream on the temp file
    3. SfxMedium::GetOutStream() wants to open a SvFileStream on the temp
       file, but because the file is already open and the sharing options
       are set to deny sharing, opening fails with ERROR_SHARING_VIOLATION
    
    Prevent that by re-using the already open XStream in GetOutStream.
    Hopefully this does not break anything, and there is already a comment
    in CloseInStream_Impl() indicating that m_pOutStream and xStream are
    related.
    
    (interestingly ERROR_SHARING_VIOLATION is documented to occur if
    _another_ process has the file open, but evidently it happens here on
    NT 6.1 for the same process...)
    
    Change-Id: I6d2ec36fd45a0317e947ddfb436472a8b86fbe26
    0c220608
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
prj Loading commit data...
qa Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig/ui Loading commit data...
util Loading commit data...
workben/custompanel Loading commit data...
AllLangResTarget_sfx2.mk Loading commit data...
CppunitTest_sfx2_metadatable.mk Loading commit data...
JunitTest_sfx2_complex.mk Loading commit data...
JunitTest_sfx2_unoapi.mk Loading commit data...
Library_qstart.mk Loading commit data...
Library_sfx.mk Loading commit data...
Makefile Loading commit data...
Module_sfx2.mk Loading commit data...
Package_inc.mk Loading commit data...
Package_sdi.mk Loading commit data...
README Loading commit data...
UI_sfx.mk Loading commit data...