]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: MoveFileEx returns BOOL which needs help converting to C++ bool.
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 1 Oct 2015 17:04:13 +0000 (17:04 +0000)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 1 Oct 2015 17:04:13 +0000 (17:04 +0000)
vm/os-windows.cpp

index c344b1e926b72903461706483ff87313ceae5ff1..70ffa5ba9fa0574c7f344a440fa966f1941d96cb 100644 (file)
@@ -137,8 +137,9 @@ long getpagesize() {
   return g_pagesize;
 }
 
+// MoveFileEx returns FALSE on fail
 bool move_file(const vm_char* path1, const vm_char* path2) {
-  return MoveFileEx((path1), (path2), MOVEFILE_REPLACE_EXISTING);
+  return !(MoveFileEx((path1), (path2), MOVEFILE_REPLACE_EXISTING) == FALSE);
 }
 
 void factor_vm::init_signals() {}