diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-10 15:03:58 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-10 15:03:58 +0000 |
commit | 956cc415d60eb799420727bb1fa156ee20d00684 (patch) | |
tree | 57fc99f2806d7fa5a75a43878124ad0725e686da /protocols/Tox | |
parent | df8d5049e0a312f6459b922f3ea300ede752604b (diff) |
Tox: fixed own avatar setting
git-svn-id: http://svn.miranda-ng.org/main/trunk@12740 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/Tox_12.vcxproj | 2 | ||||
-rw-r--r-- | protocols/Tox/src/tox_avatars.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
- <AdditionalDependencies>dnsapi.lib;comctl32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>dnsapi.lib;comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</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);
}
|