Kaydet (Commit) 3ce9508e authored tarafından David Tardon's avatar David Tardon

fix seek behind end of stream

Change-Id: I38db7759df87edee8a14b311005c6e31ff8ae856
üst 4bc06309
...@@ -143,7 +143,7 @@ int WPXSvInputStreamImpl::seek(long offset, WPX_SEEK_TYPE seekType) ...@@ -143,7 +143,7 @@ int WPXSvInputStreamImpl::seek(long offset, WPX_SEEK_TYPE seekType)
tmpOffset = 0; tmpOffset = 0;
retVal = -1; retVal = -1;
} }
if (offset > mnLength) if (tmpOffset > mnLength)
{ {
tmpOffset = mnLength; tmpOffset = mnLength;
retVal = -1; retVal = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment