diff options
| author | Callum Linden <113564339+callumlinden@users.noreply.github.com> | 2025-09-04 14:51:34 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-04 14:51:34 -0700 | 
| commit | 66ccfabdd39a8a54a94d5dbf15364ff7f94a13c2 (patch) | |
| tree | fae8bca7bb3f3ac05972803e2fefc05de8542408 /indra/llfilesystem/lldirguard.h | |
| parent | 0ae3de8f1e78dc74914ea70e725c8324390f3e97 (diff) | |
| parent | 90aa693f2a9ece9f1c624dba245f202e126bca5b (diff) | |
Merge branch 'project/mac_universal' into callum/viewer-cef-2025-08
Diffstat (limited to 'indra/llfilesystem/lldirguard.h')
| -rw-r--r-- | indra/llfilesystem/lldirguard.h | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llfilesystem/lldirguard.h b/indra/llfilesystem/lldirguard.h index fcb179bbc8..c6ce13efb4 100644 --- a/indra/llfilesystem/lldirguard.h +++ b/indra/llfilesystem/lldirguard.h @@ -31,6 +31,9 @@  #include "llerror.h"  #if LL_WINDOWS + +#include "llwin32headers.h" +  class LLDirectoryGuard  {  public: @@ -46,8 +49,8 @@ public:              (wcsncmp(mOrigDir,mFinalDir,mOrigDirLen)!=0))          {              // Dir has changed -            std::string mOrigDirUtf8 = utf16str_to_utf8str(llutf16string(mOrigDir)); -            std::string mFinalDirUtf8 = utf16str_to_utf8str(llutf16string(mFinalDir)); +            std::string mOrigDirUtf8 = ll_convert<std::string>(std::wstring(mOrigDir)); +            std::string mFinalDirUtf8 = ll_convert<std::string>(std::wstring(mFinalDir));              LL_INFOS() << "Resetting working dir from " << mFinalDirUtf8 << " to " << mOrigDirUtf8 << LL_ENDL;              SetCurrentDirectory(mOrigDir);          }  | 
