diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-08 22:08:59 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-08 22:08:59 +0000 |
commit | 03bc1c07f85e16fd32ee9e4bfec44998f44f998b (patch) | |
tree | 72bd3db22d959ffa8af509708e044fd72801c356 /chrome_frame/urlmon_url_request.cc | |
parent | 7e7b2d0f8454c5b370d49e2625a52a49864f59c6 (diff) | |
download | chromium_src-03bc1c07f85e16fd32ee9e4bfec44998f44f998b.zip chromium_src-03bc1c07f85e16fd32ee9e4bfec44998f44f998b.tar.gz chromium_src-03bc1c07f85e16fd32ee9e4bfec44998f44f998b.tar.bz2 |
Fix horrible bug in Cache.
Unittest added.
Review URL: http://codereview.chromium.org/1611012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44011 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/urlmon_url_request.cc')
-rw-r--r-- | chrome_frame/urlmon_url_request.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc index 783fcf0..c2ac15d 100644 --- a/chrome_frame/urlmon_url_request.cc +++ b/chrome_frame/urlmon_url_request.cc @@ -822,6 +822,7 @@ bool UrlmonUrlRequest::Cache::Read(void* dest, size_t bytes, memcpy(dest, src, bytes_to_copy); BytesRead(bytes_to_copy); + dest = reinterpret_cast<uint8*>(dest) + bytes_to_copy; bytes -= bytes_to_copy; *bytes_copied += bytes_to_copy; } |