X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=ed7b34db12986640ca958ac3f7526fec2658863f;hp=f47d1de92ad8524fd5d43b869127249b95865755;hb=1c5412b0beb34c91f6718134a09155f1a8eab26a;hpb=afc2bcf340f842111978138a9e04e0b14e5de9fe diff --git a/src/util.cpp b/src/util.cpp index f47d1de..ed7b34d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1235,7 +1235,7 @@ bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) { #ifdef WIN32 return MoveFileExA(src.string().c_str(), dest.string().c_str(), - MOVEFILE_REPLACE_EXISTING); + MOVEFILE_REPLACE_EXISTING) != 0; #else int rc = std::rename(src.string().c_str(), dest.string().c_str()); return (rc == 0);