diff --git a/OnlineCore/include/Platform/Core/StringConversion.h b/OnlineCore/include/Platform/Core/StringConversion.h index 509af85..328e49e 100644 --- a/OnlineCore/include/Platform/Core/StringConversion.h +++ b/OnlineCore/include/Platform/Core/StringConversion.h @@ -2,7 +2,7 @@ #include "nn/types.h" -namespace StringConversion { +namespace nn::nex::StringConversion { void Utf8ToWideChar(const char*, wchar_t*, u64); void WideCharToUtf8(const wchar_t*, char*, u64); @@ -34,4 +34,4 @@ void GetCharValue(wchar_t); void StringToHex(const wchar_t*, unsigned char*, u64); void HexToString(const unsigned char*, wchar_t*, u64); -} // namespace StringConversion +} // namespace nn::nex::StringConversion diff --git a/OnlineCore/src/Platform/Stack/Core/InetAddress.cpp b/OnlineCore/src/Platform/Stack/Core/InetAddress.cpp index 39a755f..a443258 100644 --- a/OnlineCore/src/Platform/Stack/Core/InetAddress.cpp +++ b/OnlineCore/src/Platform/Stack/Core/InetAddress.cpp @@ -38,7 +38,7 @@ u64 InetAddress::GetKey() const { } u16 InetAddress::GetPortNumber() const { - return nn::socket::InetHtons(m_Attributes.port); + return nn::socket::InetNtohs(m_Attributes.port); } void InetAddress::EnableAutoLookup(bool isAutoLookup) {