diff options
Diffstat (limited to 'protocols/Tox/src/tox_accounts.cpp')
| -rw-r--r-- | protocols/Tox/src/tox_accounts.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp index fd86624318..109a4532f6 100644 --- a/protocols/Tox/src/tox_accounts.cpp +++ b/protocols/Tox/src/tox_accounts.cpp @@ -42,6 +42,8 @@ int CToxProto::OnAccountLoaded(WPARAM, LPARAM) int CToxProto::OnAccountRenamed(WPARAM, LPARAM)
{
+ mir_cslock locker(profileLock);
+
ptrT newPath(GetToxProfilePath());
TCHAR oldPath[MAX_PATH];
mir_sntprintf(oldPath, MAX_PATH, _T("%s\\%s.tox"), VARST(_T("%miranda_userdata%")), accountName);
|
