diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-05-07 02:51:51 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-05-07 02:51:51 +0000 |
commit | 04196acdcb30b0b09bb8f03b4eb723da4ec5e961 (patch) | |
tree | da108fd8e6b0b5ca58816e1b8ff35ecca045f8d4 /llvm/lib/System/Win32 | |
parent | 1333cead5b190863bc5d373e3bfb719c5936e721 (diff) | |
download | bcm5719-llvm-04196acdcb30b0b09bb8f03b4eb723da4ec5e961.tar.gz bcm5719-llvm-04196acdcb30b0b09bb8f03b4eb723da4ec5e961.zip |
Unlike Unix, Windows won't let a file be implicitly replaced via renaming without explicit permission.
llvm-svn: 28157
Diffstat (limited to 'llvm/lib/System/Win32')
-rw-r--r-- | llvm/lib/System/Win32/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc index 8f3ceebb28b..27baf827566 100644 --- a/llvm/lib/System/Win32/Path.inc +++ b/llvm/lib/System/Win32/Path.inc @@ -682,7 +682,7 @@ bool Path::getMagicNumber(std::string& Magic, unsigned len) const { bool Path::renamePathOnDisk(const Path& newName) { - if (!MoveFile(path.c_str(), newName.c_str())) + if (!MoveFileEx(path.c_str(), newName.c_str(), MOVEFILE_REPLACE_EXISTING)) ThrowError("Can't move '" + path + "' to '" + newName.path + "': "); return true; |