From a9d12766d47272ea401063c56319f1f002e599e6 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sun, 20 Mar 2016 16:14:29 -0400 Subject: [PATCH] fix typo in hard_link() --- src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index 74c126580..6202c2301 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -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.