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) {
char tmp[MAX_PATH];
// Filename
StrToAnsi(tmp, info.ageFilename, arrsize(tmp));
SetAgeFilename(tmp);
SetAgeFilename(plString::FromWchar(info.ageFilename));
// InstanceName
StrToAnsi(tmp, info.ageInstName, arrsize(tmp));
SetAgeInstanceName(tmp);
SetAgeInstanceName(plString::FromWchar(info.ageInstName));
// UserDefinedName
StrToAnsi(tmp, info.ageUserName, arrsize(tmp));
SetAgeUserDefinedName(tmp);
SetAgeUserDefinedName(plString::FromWchar(info.ageUserName));
// Description
StrToAnsi(tmp, info.ageDesc, arrsize(tmp));
SetAgeDescription(tmp);
SetAgeDescription(plString::FromWchar(info.ageDesc));
plUUID inst(info.ageInstId);
SetAgeInstanceGuid(&inst);

Loading…
Cancel
Save