From 80d9cde59656964335613f99dfa63bb834278416 Mon Sep 17 00:00:00 2001
From: Lynx Linden <lynx@lindenlab.com>
Date: Fri, 28 May 2010 16:15:00 +0100
Subject: [PATCH] Try using mbstowcs() to convert to std::wstring. LLWString
 cannot be converted to std::wstring, apparently.

---
 indra/llcommon/llapp.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/indra/llcommon/llapp.cpp b/indra/llcommon/llapp.cpp
index 1ea888f2e01..eedec0b24e2 100644
--- a/indra/llcommon/llapp.cpp
+++ b/indra/llcommon/llapp.cpp
@@ -366,7 +366,9 @@ void LLApp::setMiniDumpDir(const std::string &path)
 {
 	llassert(mExceptionHandler);
 #ifdef LL_WINDOWS
-	mExceptionHandler->set_dump_path(utf8str_to_wstring(path));
+	wchar_t buffer[MAX_MINDUMP_PATH_LENGTH];
+	mbstowcs(buffer, path.c_str(), MAX_MINDUMP_PATH_LENGTH);
+	mExceptionHandler->set_dump_path(std::wstring(buffer));
 #else
 	mExceptionHandler->set_dump_path(path);
 #endif
-- 
GitLab