mirror of
https://github.com/reactos/wine.git
synced 2025-02-02 02:04:34 +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…
x
Reference in New Issue
Block a user