|
|
|
@ -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); |
|
|
|
|