Browse Source

Fix for linking to child age

Bartek Bok 13 years ago
parent
commit
e616874a07
  1. 6
      Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp

6
Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp

@ -4863,7 +4863,7 @@ UInt8 VaultAgeFindOrCreateChildAgeLink(
// First, try to find an already existing ChildAge
char name[MAX_PATH];
StrToAnsi(name, parentAgeName, arrsize(parentAgeName));
StrToAnsi(name, parentAgeName, arrsize(name));
plAgeInfoStruct search;
search.SetAgeFilename(name);
@ -4885,7 +4885,7 @@ UInt8 VaultAgeFindOrCreateChildAgeLink(
if (RelVaultNode* rvnChildAges = rvnParentInfo->GetChildAgeInfoListNodeIncRef(plVault::kChildAgesFolder, 1)) {
const char* ageName = info->GetAgeFilename();
wchar hack[MAX_PATH];
StrToUnicode(hack, ageName, arrsize(ageName));
StrToUnicode(hack, ageName, arrsize(hack));
// Search for our age
NetVaultNode* temp = NEWZERO(NetVaultNode);
@ -4916,11 +4916,11 @@ UInt8 VaultAgeFindOrCreateChildAgeLink(
nil,
p
);
retval = FALSE;
}
temp->DecRef();
rvnChildAges->DecRef();
retval = FALSE;
}
rvnParentInfo->DecRef();

Loading…
Cancel
Save