diff options
Diffstat (limited to 'core/fpdftext/cpdf_textpagefind.cpp')
-rw-r--r-- | core/fpdftext/cpdf_textpagefind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdftext/cpdf_textpagefind.cpp b/core/fpdftext/cpdf_textpagefind.cpp index 9f9be202d6..a874521326 100644 --- a/core/fpdftext/cpdf_textpagefind.cpp +++ b/core/fpdftext/cpdf_textpagefind.cpp @@ -376,8 +376,8 @@ bool CPDF_TextPageFind::ExtractSubString(WideString& rString, lpszFullString++; } const wchar_t* lpchEnd = std::wcschr(lpszFullString, chSep); - int nLen = lpchEnd ? (int)(lpchEnd - lpszFullString) - : (int)FXSYS_wcslen(lpszFullString); + int nLen = + lpchEnd ? (int)(lpchEnd - lpszFullString) : (int)wcslen(lpszFullString); ASSERT(nLen >= 0); memcpy(rString.GetBuffer(nLen), lpszFullString, nLen * sizeof(wchar_t)); rString.ReleaseBuffer(rString.GetStringLength()); |