mirror of
https://github.com/tnodir/fort
synced 2024-11-15 14:35:10 +00:00
Driver: Fix pending buffer flush.
This commit is contained in:
parent
734017b73f
commit
e3ed088ee4
@ -134,17 +134,14 @@ fort_buffer_prepare (PFORT_BUFFER buf, UINT32 len, PCHAR *out,
|
|||||||
/* Is it time to flush logs? */
|
/* Is it time to flush logs? */
|
||||||
if (out_len - new_top < FORT_LOG_SIZE_MAX) {
|
if (out_len - new_top < FORT_LOG_SIZE_MAX) {
|
||||||
if (irp != NULL) {
|
if (irp != NULL) {
|
||||||
buf->out_len = 0;
|
|
||||||
|
|
||||||
*irp = buf->irp;
|
*irp = buf->irp;
|
||||||
buf->irp = NULL;
|
buf->irp = NULL;
|
||||||
|
|
||||||
*info = new_top;
|
*info = new_top;
|
||||||
new_top = 0;
|
new_top = 0;
|
||||||
} else {
|
|
||||||
buf->out_len = out_top;
|
|
||||||
new_top = out_top;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buf->out_len = new_top;
|
||||||
}
|
}
|
||||||
|
|
||||||
*out = buf->out + out_top;
|
*out = buf->out + out_top;
|
||||||
|
Loading…
Reference in New Issue
Block a user