Browse Source

Correct calls to `StrTo(Unicode|Ansi)` to use the correct size.

tickets/24/24/1
Adam Johnson 3 years ago
parent
commit
d7c999c8f3
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 4
      Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp

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

@ -4911,7 +4911,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);
@ -4933,7 +4933,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);

Loading…
Cancel
Save