[Server] Fix return values for server functions providing system info

pull/526/head
David Cernat 6 years ago
parent d8919dcec6
commit 7523a73346

@ -84,12 +84,14 @@ unsigned int ServerFunctions::GetMillisecondsSinceServerStart() noexcept
const char *ServerFunctions::GetOperatingSystemType() noexcept
{
return Utils::getOperatingSystemType().c_str();
static const std::string operatingSystemType = Utils::getOperatingSystemType();
return operatingSystemType.c_str();
}
const char *ServerFunctions::GetArchitectureType() noexcept
{
return Utils::getArchitectureType().c_str();
static const std::string architectureType = Utils::getArchitectureType();
return architectureType.c_str();
}
const char *ServerFunctions::GetServerVersion() noexcept

Loading…
Cancel
Save