|
|
@ -1038,10 +1038,7 @@ public: |
|
|
|
if (nReadPosNext >= vch.size()) |
|
|
|
if (nReadPosNext >= vch.size()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (nReadPosNext > vch.size()) |
|
|
|
if (nReadPosNext > vch.size()) |
|
|
|
{ |
|
|
|
|
|
|
|
setstate(std::ios::failbit, "CDataStream::ignore() : end of data"); |
|
|
|
setstate(std::ios::failbit, "CDataStream::ignore() : end of data"); |
|
|
|
nSize = vch.size() - nReadPos; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
nReadPos = 0; |
|
|
|
nReadPos = 0; |
|
|
|
vch.clear(); |
|
|
|
vch.clear(); |
|
|
|
return (*this); |
|
|
|
return (*this); |
|
|
|