Module: wine Branch: master Commit: 23c6cd4241a775d69b3691e6d0269572606ebdb9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=23c6cd4241a775d69b3691e6d0...
Author: Jacek Caban jacek@codeweavers.com Date: Mon May 18 18:29:54 2009 +0200
urlmon: Fixed buffer size argument in Read call.
---
dlls/urlmon/bindprot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/bindprot.c b/dlls/urlmon/bindprot.c index 8977cac..ec58436 100644 --- a/dlls/urlmon/bindprot.c +++ b/dlls/urlmon/bindprot.c @@ -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; }