mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-30 10:04:35 +08:00
and again a fix on Windows
This commit is contained in:
parent
6e2a5419cc
commit
0d2c31d0e4
@ -87,7 +87,7 @@ std::string get_current_thread_name()
|
||||
{
|
||||
wchar_t *ptr = nullptr;
|
||||
::GetThreadDescription(::GetCurrentThread(), &ptr);
|
||||
return std::string((ptr == nullptr) ? "" : ptr);
|
||||
return (ptr == nullptr) ? std::string() : boost::nowide::narrow(ptr);
|
||||
}
|
||||
|
||||
#else // _WIN32
|
||||
|
Loading…
x
Reference in New Issue
Block a user