diff options
author | aunsane <aunsane@gmail.com> | 2017-12-21 16:08:58 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-12-21 16:09:15 +0300 |
commit | 70c13e5c4475aedd296c51e68070e85096eb4f39 (patch) | |
tree | 83ed7d0e4bf25d25babfd7fdfe741e9e457f6c6d /protocols/Tox/src/tox_accounts.cpp | |
parent | f4184ffdc42c7a1753a77ea8087f5f16635ac942 (diff) |
Tox: improved profile encription management
Diffstat (limited to 'protocols/Tox/src/tox_accounts.cpp')
-rw-r--r-- | protocols/Tox/src/tox_accounts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp index fb7834f1db..866a0dbd3b 100644 --- a/protocols/Tox/src/tox_accounts.cpp +++ b/protocols/Tox/src/tox_accounts.cpp @@ -41,13 +41,13 @@ int CToxProto::OnAccountLoaded(WPARAM, LPARAM) int CToxProto::OnAccountRenamed(WPARAM, LPARAM)
{
- mir_cslock lock(profileLock);
+ mir_cslock lock(m_profileLock);
ptrW newPath(GetToxProfilePath());
wchar_t oldPath[MAX_PATH];
- mir_snwprintf(oldPath, MAX_PATH, L"%s\\%s.tox", VARSW(L"%miranda_userdata%"), wszAccountName);
+ mir_snwprintf(oldPath, MAX_PATH, L"%s\\%s.tox", VARSW(L"%miranda_userdata%"), m_accountName);
_wrename(oldPath, newPath);
- wszAccountName = mir_wstrdup(m_tszUserName);
+ m_accountName = mir_wstrdup(m_tszUserName);
return 0;
}
|