1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-31 11:15:52 +00:00

and again a fix on Windows

This commit is contained in:
Vojtech Bubnik
2020-10-22 14:35:20 +02:00
parent 6e2a5419cc
commit 0d2c31d0e4
+1 -1
View File
@@ -87,7 +87,7 @@ std::string get_current_thread_name()
{ {
wchar_t *ptr = nullptr; wchar_t *ptr = nullptr;
::GetThreadDescription(::GetCurrentThread(), &ptr); ::GetThreadDescription(::GetCurrentThread(), &ptr);
return std::string((ptr == nullptr) ? "" : ptr); return (ptr == nullptr) ? std::string() : boost::nowide::narrow(ptr);
} }
#else // _WIN32 #else // _WIN32