summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source')
-rw-r--r--shell/source/sessioninstall/SyncDbusSessionHelper.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
index df2ef3529145..606eeb8fef03 100644
--- a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
+++ b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
@@ -11,6 +11,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <gio/gio.h>
+#include <cstring>
#include <memory>
#include <string_view>
#include <vector>
@@ -32,7 +33,8 @@ namespace
{
if(!m_pError)
return;
- OUString sMsg = OUString::createFromAscii(m_pError->message);
+ OUString sMsg(
+ m_pError->message, std::strlen(m_pError->message), RTL_TEXTENCODING_UTF8);
g_error_free(m_pError);
throw RuntimeException(sMsg);
}