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

Loading…
Cancel
Save