summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Tox/res/resource.rc4
-rw-r--r--protocols/Tox/src/tox_profile.cpp8
2 files changed, 6 insertions, 6 deletions
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"));