diff --git a/checkin_notes b/checkin_notes index fb41d963d5..4ed7355950 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5165,3 +5165,9 @@ Charlie 5 June 2009 lib/ filesys.cpp + +Charlie 8 June 2009 + - lib: Fix compiler error on Windows. + + lib/ + filesys.cpp diff --git a/lib/filesys.cpp b/lib/filesys.cpp index 042155eec1..44b8233d25 100644 --- a/lib/filesys.cpp +++ b/lib/filesys.cpp @@ -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; }