diff options
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.cpp')
-rw-r--r-- | xfa/fde/cfde_txtedtengine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fde/cfde_txtedtengine.cpp b/xfa/fde/cfde_txtedtengine.cpp index 633e0bc68e..b6471766db 100644 --- a/xfa/fde/cfde_txtedtengine.cpp +++ b/xfa/fde/cfde_txtedtengine.cpp @@ -117,8 +117,7 @@ void CFDE_TxtEdtEngine::SetTextByStream( } bool bPreIsCR = false; if (bValid) { - uint8_t bom[4]; - int32_t nPos = pStream->GetBOM(bom); + int32_t nPos = pStream->GetBOMLength(); pStream->Seek(FX_STREAMSEEK_Begin, nPos); int32_t nPlateSize = std::min(nStreamLength, m_pTxtBuf->GetChunkSize()); wchar_t* lpwstr = FX_Alloc(wchar_t, nPlateSize); |