lib: Fix compiler error on Windows

svn path=/trunk/boinc/; revision=18324
This commit is contained in:
Charlie Fenton 2009-06-08 07:20:17 +00:00
parent 8fa77afeff
commit 39c7422457
2 changed files with 7 additions and 1 deletions

View File

@ -5165,3 +5165,9 @@ Charlie 5 June 2009
lib/
filesys.cpp
Charlie 8 June 2009
- lib: Fix compiler error on Windows.
lib/
filesys.cpp

View File

@ -687,10 +687,10 @@ int FILE_LOCK::unlock(const char* filename) {
if (close(fd)) {
retval = -1;
}
fd = -1;
#endif
boinc_delete_file(filename);
locked = false;
fd = -1;
return 0;
}