From 39c7422457cc1ebfecdc97763879ac3d1185b2c8 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 8 Jun 2009 07:20:17 +0000 Subject: [PATCH] lib: Fix compiler error on Windows svn path=/trunk/boinc/; revision=18324 --- checkin_notes | 6 ++++++ lib/filesys.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; }