fix typo in hard_link()

This commit is contained in:
arvidn 2016-03-20 16:14:29 -04:00
parent db214cc92d
commit a9d12766d4
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ namespace libtorrent
// TODO: 3 find out what error code is reported when the filesystem
// does not support hard links.
DWORD error = GetLastError();
if (error != ERROR_NOT_SUPPORTED || error != ERROR_ACCESS_DENIED)
if (error != ERROR_NOT_SUPPORTED && error != ERROR_ACCESS_DENIED)
{
// it's possible CreateHardLink will copy the file internally too,
// if the filesystem does not support it.