Gems/Atom builds
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -358,13 +358,11 @@ GridHubComponent::GridHubComponent()
|
||||
m_isLogToFile = false;
|
||||
|
||||
#ifdef AZ_PLATFORM_WINDOWS
|
||||
TCHAR name[MAX_COMPUTERNAME_LENGTH + 1];
|
||||
wchar_t name[MAX_COMPUTERNAME_LENGTH + 1];
|
||||
DWORD dwCompNameLen = AZ_ARRAY_SIZE(name);
|
||||
if ( GetComputerName(name, &dwCompNameLen) != 0 )
|
||||
if (GetComputerName(name, &dwCompNameLen) != 0)
|
||||
{
|
||||
char c[MAX_COMPUTERNAME_LENGTH + 1];
|
||||
wcstombs(c, name, AZ_ARRAY_SIZE(c));
|
||||
m_hubName = c;
|
||||
AZStd::to_string(m_hubName, name);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user