Commit 0cf629b8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed Read implementations.

parent c6ac960f
...@@ -331,7 +331,7 @@ static HRESULT WINAPI AboutProtocol_Read(IInternetProtocol *iface, void* pv, ULO ...@@ -331,7 +331,7 @@ static HRESULT WINAPI AboutProtocol_Read(IInternetProtocol *iface, void* pv, ULO
if(!*pcbRead) if(!*pcbRead)
return S_FALSE; return S_FALSE;
memcpy(pv, This->data, *pcbRead); memcpy(pv, This->data+This->cur, *pcbRead);
This->cur += *pcbRead; This->cur += *pcbRead;
return S_OK; return S_OK;
...@@ -739,7 +739,7 @@ static HRESULT WINAPI ResProtocol_Read(IInternetProtocol *iface, void* pv, ULONG ...@@ -739,7 +739,7 @@ static HRESULT WINAPI ResProtocol_Read(IInternetProtocol *iface, void* pv, ULONG
if(!*pcbRead) if(!*pcbRead)
return S_FALSE; return S_FALSE;
memcpy(pv, This->data, *pcbRead); memcpy(pv, This->data+This->cur, *pcbRead);
This->cur += *pcbRead; This->cur += *pcbRead;
return S_OK; return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment