Commit 1e758c5e authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

riched20: Do not call callback when no data needs to be flushed.

parent 07cfce6e
......@@ -54,7 +54,7 @@ ME_StreamOutFlush(ME_OutStream *pStream)
LONG nRemaining = 0;
EDITSTREAM *stream = pStream->stream;
do {
while (nStart < pStream->pos) {
TRACE("sending %u bytes\n", pStream->pos - nStart);
/* Some apps seem not to set *pcb unless a problem arises, relying
on initial random nWritten value, which is usually >STREAMOUT_BUFFER_SIZE */
......@@ -72,7 +72,7 @@ ME_StreamOutFlush(ME_OutStream *pStream)
return FALSE;
pStream->written += nWritten;
nStart += nWritten;
} while (nStart < pStream->pos);
}
pStream->pos = 0;
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment