mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
seekg position should be relative to beginning #4413 aleph-us/devs#397
This commit is contained in:
@@ -144,7 +144,7 @@ private:
|
|||||||
T len = 0;
|
T len = 0;
|
||||||
if (istr)
|
if (istr)
|
||||||
{
|
{
|
||||||
istr.seekg(rangeStart);
|
istr.seekg(rangeStart, std::ios_base::beg);
|
||||||
istr.read(buffer.begin(), bufferSize);
|
istr.read(buffer.begin(), bufferSize);
|
||||||
std::streamsize n = istr.gcount();
|
std::streamsize n = istr.gcount();
|
||||||
while (n > 0)
|
while (n > 0)
|
||||||
@@ -209,7 +209,7 @@ private:
|
|||||||
char c = 0;
|
char c = 0;
|
||||||
if (istr)
|
if (istr)
|
||||||
{
|
{
|
||||||
istr.seekg(rangeStart);
|
istr.seekg(rangeStart, std::ios_base::beg);
|
||||||
istr.get(c);
|
istr.get(c);
|
||||||
while (istr && ostr && (len < rangeLength))
|
while (istr && ostr && (len < rangeLength))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user