Browse Source

Scrub the last StrToAnsi from AgeInfo conversions

Adam Johnson 10 years ago
parent
commit
b6bbf8419a
  1. 14
      Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp

14
Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp

@ -167,20 +167,14 @@ void plAgeInfoStruct::CopyFrom( const plVaultAgeInfoNode * node )
//============================================================================ //============================================================================
void plAgeInfoStruct::CopyFrom(const NetAgeInfo & info) { void plAgeInfoStruct::CopyFrom(const NetAgeInfo & info) {
char tmp[MAX_PATH];
// Filename // Filename
StrToAnsi(tmp, info.ageFilename, arrsize(tmp)); SetAgeFilename(plString::FromWchar(info.ageFilename));
SetAgeFilename(tmp);
// InstanceName // InstanceName
StrToAnsi(tmp, info.ageInstName, arrsize(tmp)); SetAgeInstanceName(plString::FromWchar(info.ageInstName));
SetAgeInstanceName(tmp);
// UserDefinedName // UserDefinedName
StrToAnsi(tmp, info.ageUserName, arrsize(tmp)); SetAgeUserDefinedName(plString::FromWchar(info.ageUserName));
SetAgeUserDefinedName(tmp);
// Description // Description
StrToAnsi(tmp, info.ageDesc, arrsize(tmp)); SetAgeDescription(plString::FromWchar(info.ageDesc));
SetAgeDescription(tmp);
plUUID inst(info.ageInstId); plUUID inst(info.ageInstId);
SetAgeInstanceGuid(&inst); SetAgeInstanceGuid(&inst);

Loading…
Cancel
Save