| Index: fpdfsdk/src/formfiller/FFL_TextField.cpp | 
| diff --git a/fpdfsdk/src/formfiller/FFL_TextField.cpp b/fpdfsdk/src/formfiller/FFL_TextField.cpp | 
| index 45c716280c22525e7646073cf7e94848f135feb8..6a70981e4f6301acf0d2cc68d92be0e3467e2fb4 100644 | 
| --- a/fpdfsdk/src/formfiller/FFL_TextField.cpp | 
| +++ b/fpdfsdk/src/formfiller/FFL_TextField.cpp | 
| @@ -364,7 +364,7 @@ void CFFL_TextField::OnSetFocus(CPWL_Wnd* pWnd) | 
| CFX_WideString wsText = pEdit->GetText(); | 
| int nCharacters = wsText.GetLength(); | 
| CFX_ByteString bsUTFText = wsText.UTF16LE_Encode(); | 
| -		unsigned short* pBuffer = (unsigned short*)(FX_LPCSTR)bsUTFText; | 
| +		unsigned short* pBuffer = (unsigned short*)bsUTFText.c_str(); | 
| m_pApp->FFI_OnSetFieldInputFocus(m_pWidget->GetFormField(), pBuffer, nCharacters, TRUE); | 
|  | 
| pEdit->SetEditNotify(this); | 
|  |