urlmon: Fixed buffer size argument in Read call.

This commit is contained in:
Jacek Caban 2009-05-18 18:29:54 +02:00 committed by Alexandre Julliard
parent e5f8427abf
commit 23c6cd4241

View file

@ -615,7 +615,7 @@ static HRESULT WINAPI ProtocolHandler_Read(IInternetProtocol *iface, void *pv,
if(read < cb) {
ULONG cread = 0;
hres = IInternetProtocol_Read(This->protocol, (BYTE*)pv+read, cb, &cread);
hres = IInternetProtocol_Read(This->protocol, (BYTE*)pv+read, cb-read, &cread);
read += cread;
}