mshtml: Fixed Read implementations.

oldstable
Jacek Caban 2008-01-04 01:49:36 +01:00 committed by Alexandre Julliard
parent c6ac960f4a
commit 0cf629b81a
1 changed files with 2 additions and 2 deletions

View File

@ -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;