mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 17:04:09 +00:00
cabinet/tests: Advance buffer by actually read bytes count.
This commit is contained in:
parent
b02ea57e04
commit
65562be420
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue