aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/io/FileOutputStream.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-02-06 17:15:31 +0100
committerMax Kellermann <max@duempel.org>2015-02-06 17:15:31 +0100
commitff2b427cc139adbf20e684db69dab9305c91c212 (patch)
tree8d95220da3458fc4fa741a5775bcb0bf98296127 /src/fs/io/FileOutputStream.cxx
parenta62fe305464c6815dca7139dcb0cb689fcdfbaa1 (diff)
parent5761800197a86ba6de70af026546e678cbda4b91 (diff)
downloadmpd-ff2b427cc139adbf20e684db69dab9305c91c212.tar.gz
mpd-ff2b427cc139adbf20e684db69dab9305c91c212.tar.xz
mpd-ff2b427cc139adbf20e684db69dab9305c91c212.zip
Merge tag 'v0.19.9'
Diffstat (limited to 'src/fs/io/FileOutputStream.cxx')
-rw-r--r--src/fs/io/FileOutputStream.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/io/FileOutputStream.cxx b/src/fs/io/FileOutputStream.cxx
index 11b5b2351..40dadf310 100644
--- a/src/fs/io/FileOutputStream.cxx
+++ b/src/fs/io/FileOutputStream.cxx
@@ -73,6 +73,7 @@ FileOutputStream::Commit(gcc_unused Error &error)
assert(IsDefined());
CloseHandle(handle);
+ handle = INVALID_HANDLE_VALUE;
return true;
}
@@ -82,6 +83,7 @@ FileOutputStream::Cancel()
assert(IsDefined());
CloseHandle(handle);
+ handle = INVALID_HANDLE_VALUE;
RemoveFile(path);
}