Commit 65562be4 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

cabinet/tests: Advance buffer by actually read bytes count.

parent b02ea57e
......@@ -721,7 +721,7 @@ static UINT CDECL fdi_mem_read(INT_PTR hf, void *pv, UINT cb)
cb_read = (available >= cb) ? cb : available;
memcpy(pv, data->base + data->pos, cb_read);
data->pos += cb;
data->pos += cb_read;
/*trace("mem_read(%p,%p,%u) => %u\n", hf, pv, cb, cb_read);*/
return cb_read;
......
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