From 956cc415d60eb799420727bb1fa156ee20d00684 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 10 Apr 2015 15:03:58 +0000 Subject: Tox: fixed own avatar setting git-svn-id: http://svn.miranda-ng.org/main/trunk@12740 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/Tox_12.vcxproj | 2 +- protocols/Tox/src/tox_avatars.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/Tox/Tox_12.vcxproj b/protocols/Tox/Tox_12.vcxproj index efcff313df..8a594304bf 100644 --- a/protocols/Tox/Tox_12.vcxproj +++ b/protocols/Tox/Tox_12.vcxproj @@ -97,7 +97,7 @@ $(IntDir)$(TargetName).lib false false - dnsapi.lib;comctl32.lib;ws2_32.lib;%(AdditionalDependencies) + dnsapi.lib;comctl32.lib;%(AdditionalDependencies) _DEBUG;%(PreprocessorDefinitions) diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp index 6f2b1c6831..bc683bf0f6 100644 --- a/protocols/Tox/src/tox_avatars.cpp +++ b/protocols/Tox/src/tox_avatars.cpp @@ -97,7 +97,7 @@ void CToxProto::SetToxAvatar(std::tstring path, bool checkHash) transfer->pfts.hContact = hContact; transfer->pfts.flags |= PFTS_SENDING; //transfer->pfts.tszWorkingDir = fileDir; - transfer->hFile = hFile; + transfer->hFile = _tfopen(path.c_str(), L"rb"); transfers.Add(transfer); } -- cgit v1.2.3