Chromium Code Reviews| Index: xfa/fgas/crt/fgas_stream.cpp |
| diff --git a/xfa/fgas/crt/fgas_stream.cpp b/xfa/fgas/crt/fgas_stream.cpp |
| index 8ab2f9fd37826da05eb7e9410ac6a767c99f1c86..1c897242034416704dbecd2c65350a1b5a03796e 100644 |
| --- a/xfa/fgas/crt/fgas_stream.cpp |
| +++ b/xfa/fgas/crt/fgas_stream.cpp |
| @@ -871,7 +871,8 @@ int32_t CFX_BufferStreamImp::ReadString(FX_WCHAR* pStr, |
| const FX_WCHAR* pSrc = (const FX_WCHAR*)(FX_CHAR*)(m_pData + m_iPosition); |
| int32_t iCount = 0; |
| while (*pSrc != L'\0' && iCount < iLen) { |
|
Tom Sepez
2016/03/30 16:55:30
nit: just while (*pSrc && iCount < iLen) {
dsinclair
2016/03/30 17:32:13
Done.
|
| - *pStr++ = *pSrc++, iCount++; |
| + *pStr++ = *pSrc++; |
| + iCount++; |
| } |
| m_iPosition += iCount * 2; |
| bEOS = (*pSrc == L'\0') || (m_iPosition >= m_iLength); |
| @@ -1345,6 +1346,7 @@ int32_t CFX_Stream::ReadString(FX_WCHAR* pStr, |
| } |
| return iLen; |
| } |
| + |
| int32_t CFX_Stream::WriteData(const uint8_t* pBuffer, int32_t iBufferSize) { |
| FXSYS_assert(pBuffer != NULL && iBufferSize > 0); |
| if (m_pStreamImp == NULL) { |