mirror of
https://github.com/reactos/CMake.git
synced 2024-11-26 13:00:25 +00:00
BUG: Attempt to fix CopyFile problem using flush before check for success.
This commit is contained in:
parent
6435f608b9
commit
c96c3c382f
@ -1246,7 +1246,12 @@ void cmSystemTools::cmCopyFile(const char* source,
|
||||
fout.write(buffer, fin.gcount());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Make sure the operating system has finished writing the file
|
||||
// before closing it. This will ensure the file is finished before
|
||||
// the check below.
|
||||
fout.flush();
|
||||
|
||||
fin.close();
|
||||
fout.close();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user