diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-14 23:40:06 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-04-14 23:40:06 +0200 |
commit | 582cdc273ec0e91d27be8a7893994acadf4d7d18 (patch) | |
tree | 16d49690426bc4e1f30f15e83416eea1303c1610 /svx | |
parent | 2a675287afa853a255eaab77e76ef3a594fdd951 (diff) |
tdf#89750: svx: fix ExternalToolEdit on Windows
While adding check that the temp file move succeeds, overlooked that the
file handle is actually leaked, which means the move will fail on WNT
because the file is already open.
(regression from ef490df2119523e1761f99b5fdbb387c2c71608d)
Change-Id: I779ccde79871930fef3bad7e17b633fb62e36a46
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/core/extedit.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx index d0f99093ebd9..bb15fca328a3 100644 --- a/svx/source/core/extedit.cxx +++ b/svx/source/core/extedit.cxx @@ -113,9 +113,8 @@ void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject) OUString aTempFileBase; OUString aTempFileName; - oslFileHandle pHandle; osl::FileBase::RC rc = - osl::FileBase::createTempFile(0, &pHandle, &aTempFileBase); + osl::FileBase::createTempFile(nullptr, nullptr, &aTempFileBase); if (osl::FileBase::E_None != rc) { SAL_WARN("svx", "ExternalToolEdit::Edit: cannot create temp file"); |