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

Alexandre Julliard julliard at winehq.org
Mon Feb 10 13:06:55 CST 2014


Module: wine
Branch: master
Commit: 65562be420fd8f76a2ca6e9e1ad6ae0511d0801f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=65562be420fd8f76a2ca6e9e1ad6ae0511d0801f

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Feb 10 15:10:29 2014 +0900

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

---

 dlls/cabinet/tests/fdi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/cabinet/tests/fdi.c b/dlls/cabinet/tests/fdi.c
index afae707..4ed967a 100644
--- a/dlls/cabinet/tests/fdi.c
+++ b/dlls/cabinet/tests/fdi.c
@@ -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;




More information about the wine-cvs mailing list