summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-09 11:38:47 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-08-10 09:10:26 +0200
commit0fefdd80d4420d794882e2e4790e4937c2130100 (patch)
tree8f269c47a9b8847a9569d5e3a0e09fba506e8f79 /sal
parent08d1ff386546e0926b9fe0d186c565112010fc2b (diff)
crashreporting: frequent crash seen in PackedFile::flush
at: if (osl::File::E_None == osl::FileBase::createTempFile(nullptr, &aHandle, &aTempURL)) { .... if (osl_File_E_None == osl_writeFile(aHandle, ... createTempFile is returning osl::File::E_None but presumably we are missing setting a possible error state here https: //crashreport.libreoffice.org/stats/crash_details/ea4b4050-dd0f-42b1-b30f-b67612806371 Change-Id: Ib2d0c3c91e40fe985571e79822b91f2faf401471 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138021 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/tempfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/w32/tempfile.cxx b/sal/osl/w32/tempfile.cxx
index a4c272e57768..5d5d758ce244 100644
--- a/sal/osl/w32/tempfile.cxx
+++ b/sal/osl/w32/tempfile.cxx
@@ -192,7 +192,7 @@ oslFileError SAL_CALL osl_createTempFile(
if (tmp_name)
{
- osl_createTempFile_impl_(
+ osl_error = osl_createTempFile_impl_(
base_directory,
tmp_name,
b_delete_on_close,