From 7e8e288ba2fd2fd386f93288413c97788c7a8c21 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 13 Apr 2015 21:42:39 +0300 Subject: [PATCH] CopyFile fixed (finally) --- Utilities/rFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/rFile.cpp b/Utilities/rFile.cpp index 66e8bb9d33..70e1dea34e 100644 --- a/Utilities/rFile.cpp +++ b/Utilities/rFile.cpp @@ -163,7 +163,7 @@ int OSCopyFile(const char* source, const char* destination, bool overwrite) { return -1; } - if ((output = open(destination, O_RDWR | O_CREAT | (overwrite ? 0 : O_EXCL)), 0666) == -1) + if ((output = open(destination, O_RDWR | O_CREAT | (overwrite ? 0 : O_EXCL), 0666)) == -1) { close(input); return -1;