diff options
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);
}
|