riched20: Set pStream->written in ME_StreamOutFlush.

Huw Davies huw at codeweavers.com
Tue Nov 3 08:37:14 CST 2015


On Thu, Oct 29, 2015 at 01:20:57PM +0800, Jactry Zeng wrote:
> diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c
> index 2c7386a..72a8db5 100644
> --- a/dlls/riched20/writer.c
> +++ b/dlls/riched20/writer.c
> @@ -63,6 +63,7 @@ ME_StreamOutFlush(ME_OutStream *pStream)
>      /* Don't resend partial chunks if nWritten < pStream->pos */
>    }
>    pStream->pos = 0;
> +  pStream->written += nWritten;
>    return TRUE;
>  }

While this is probably correct, it would be easy to add tests for this.
We already have EM_STREAMOUT tests, so just add checks on their return
values.

Huw.



More information about the wine-devel mailing list