Fix failing assertion in logger on Windows when the disk is full.

This commit is contained in:
Marek Kurdej 2016-01-05 13:35:14 +01:00
parent 7699439b7c
commit 92d0850f1c
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ void WinLogger::Logv(const char* format, va_list ap) {
}
flush_pending_ = true;
assert(bytesWritten == write_size);
assert((bytesWritten == write_size) || (ret == FALSE));
if (bytesWritten > 0) {
log_size_ += write_size;
}