diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-02 11:35:01 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-02 11:35:01 +0000 |
commit | 036a125b6b499f87072b32310ac5acfab697be84 (patch) | |
tree | 5b1b0a2631d63aea2875d154468587d37dfd748c /protocols/Tox/src/tox_accounts.cpp | |
parent | 98c7c88f7587cc464a4d4c263a0547c4be428325 (diff) |
Tox: ok, let there be a thread
git-svn-id: http://svn.miranda-ng.org/main/trunk@15668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
|