urlmon: Fixed buffer size argument in Read call.
This commit is contained in:
parent
e5f8427abf
commit
23c6cd4241
|
@ -615,7 +615,7 @@ static HRESULT WINAPI ProtocolHandler_Read(IInternetProtocol *iface, void *pv,
|
||||||
if(read < cb) {
|
if(read < cb) {
|
||||||
ULONG cread = 0;
|
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;
|
read += cread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue