vm: MoveFileEx returns BOOL which needs help converting to C++ bool.

db4
Doug Coleman 2015-10-01 17:04:13 +00:00
parent 30182a4d38
commit 7eec8621aa
1 changed files with 2 additions and 1 deletions

View 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() {}