From 4a5aa5c174d51df69d9e683abc5fa3b8ad182048 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 19 Mar 2015 06:14:25 +0000 Subject: one more attempt encrypt tox profile git-svn-id: http://svn.miranda-ng.org/main/trunk@12432 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/res/resource.rc | 4 ++-- protocols/Tox/src/tox_profile.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols') diff --git a/protocols/Tox/res/resource.rc b/protocols/Tox/res/resource.rc index a93f1c333d..0d5be18b0a 100644 --- a/protocols/Tox/res/resource.rc +++ b/protocols/Tox/res/resource.rc @@ -92,7 +92,7 @@ BEGIN EDITTEXT IDC_GROUP,66,54,120,12,ES_AUTOHSCROLL PUSHBUTTON "C",IDC_CLIPBOARD,170,7,16,13 LTEXT "Tox ID:",IDC_STATIC,12,9,54,8 - EDITTEXT IDC_PASSWORD,66,38,120,12,ES_PASSWORD | ES_AUTOHSCROLL | NOT WS_VISIBLE + EDITTEXT IDC_PASSWORD,66,38,120,12,ES_PASSWORD | ES_AUTOHSCROLL PUSHBUTTON "Import tox profile",IDC_IMPORT_PROFILE,66,72,100,14,WS_DISABLED LTEXT "Tox profile contains your ID and friend list.\r\nYou may import existing profile from other tox client.",IDC_STATIC,12,91,174,21 END @@ -115,7 +115,7 @@ BEGIN EDITTEXT IDC_GROUP,81,63,217,12,ES_AUTOHSCROLL PUSHBUTTON "C",IDC_CLIPBOARD,282,15,16,13 LTEXT "Password:",IDC_STATIC,12,49,69,8,NOT WS_VISIBLE - EDITTEXT IDC_PASSWORD,81,47,217,12,ES_PASSWORD | ES_AUTOHSCROLL | NOT WS_VISIBLE + EDITTEXT IDC_PASSWORD,81,47,217,12,ES_PASSWORD | ES_AUTOHSCROLL PUSHBUTTON "Import tox profile",IDC_IMPORT_PROFILE,81,78,100,14,WS_DISABLED LTEXT "Tox profile contains your ID and friend list.\r\nYou may import existing profile from other tox client.",IDC_STATIC,81,95,217,25 END diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index 7ac4516cde..29c84fb040 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -90,7 +90,7 @@ bool CToxProto::LoadToxProfile() void CToxProto::SaveToxProfile() { - /*size_t size = 0; + size_t size = 0; uint8_t *data = NULL; { @@ -113,11 +113,11 @@ void CToxProto::SaveToxProfile() data = (uint8_t*)mir_calloc(size); tox_save(tox, data); } - }*/ + } - size_t size = tox_size(tox); + /*size_t size = tox_size(tox); uint8_t *data = (uint8_t*)mir_calloc(size); - tox_save(tox, data); + tox_save(tox, data);*/ std::tstring profilePath = GetToxProfilePath(); FILE *profile = _tfopen(profilePath.c_str(), _T("wb")); -- cgit v1.2.3