Kaydet (Commit) 582cdc27 authored tarafından Michael Stahl's avatar Michael Stahl

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 ef490df2)

Change-Id: I779ccde79871930fef3bad7e17b633fb62e36a46
üst 2a675287
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment