From: Nick Lewycky Date: Tue, 6 May 2008 03:42:21 +0000 (+0000) Subject: Fix renamePathOnDisk on Win32, patch from David Leon. This fixes problems with X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5c632e904cb5b4c01b056b7db932fcde364a6912;p=oota-llvm.git Fix renamePathOnDisk on Win32, patch from David Leon. This fixes problems with llvm-ar being unable to rename files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50702 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 357cb2f27ee..ce5fe2a3a5f 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -672,7 +672,7 @@ Path::renamePathOnDisk(const Path& newName, std::string* ErrMsg) { if (!MoveFileEx(path.c_str(), newName.c_str(), MOVEFILE_REPLACE_EXISTING)) return MakeErrMsg(ErrMsg, "Can't move '" + path + "' to '" + newName.path + "': "); - return true; + return false; } bool