mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 09:59:32 -06:00
Common: Remove TLS usage in GetLastErrorMsg
Just return std::string as this code isn't performance critical.
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
#endif
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
@ -115,7 +116,7 @@ extern "C"
|
||||
// Call directly after the command or use the error num.
|
||||
// This function might change the error code.
|
||||
// Defined in Misc.cpp.
|
||||
const char* GetLastErrorMsg();
|
||||
std::string GetLastErrorMsg();
|
||||
|
||||
namespace Common
|
||||
{
|
||||
|
Reference in New Issue
Block a user