Module: wine Branch: master Commit: 0cf629b81a35d6e608edc98094088164a6bcf20b URL: http://source.winehq.org/git/wine.git/?a=commit;h=0cf629b81a35d6e608edc98094...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Jan 4 01:49:36 2008 +0100
mshtml: Fixed Read implementations.
---
dlls/mshtml/protocol.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c index f702870..5f91087 100644 --- a/dlls/mshtml/protocol.c +++ b/dlls/mshtml/protocol.c @@ -331,7 +331,7 @@ static HRESULT WINAPI AboutProtocol_Read(IInternetProtocol *iface, void* pv, ULO if(!*pcbRead) return S_FALSE;
- memcpy(pv, This->data, *pcbRead); + memcpy(pv, This->data+This->cur, *pcbRead); This->cur += *pcbRead;
return S_OK; @@ -739,7 +739,7 @@ static HRESULT WINAPI ResProtocol_Read(IInternetProtocol *iface, void* pv, ULONG if(!*pcbRead) return S_FALSE;
- memcpy(pv, This->data, *pcbRead); + memcpy(pv, This->data+This->cur, *pcbRead); This->cur += *pcbRead;
return S_OK;