| Index: core/src/fxcrt/fx_basic_wstring.cpp
 | 
| diff --git a/core/src/fxcrt/fx_basic_wstring.cpp b/core/src/fxcrt/fx_basic_wstring.cpp
 | 
| index 2ea23e4f192a133302432a99d0c2d068493c1078..e255aa0779c3a7f8e10c68e9d9480e13fc68b0fc 100644
 | 
| --- a/core/src/fxcrt/fx_basic_wstring.cpp
 | 
| +++ b/core/src/fxcrt/fx_basic_wstring.cpp
 | 
| @@ -535,6 +535,15 @@ int CFX_WideString::Compare(const CFX_WideString& str) const
 | 
|      }
 | 
|      return 0;
 | 
|  }
 | 
| +FX_LPWSTR CFX_WideString::LockBuffer()
 | 
| +{
 | 
| +    if (m_pData == NULL) {
 | 
| +        return NULL;
 | 
| +    }
 | 
| +    FX_LPWSTR lpsz = GetBuffer(0);
 | 
| +    m_pData->m_nRefs = -1;
 | 
| +    return lpsz;
 | 
| +}
 | 
|  void CFX_WideString::SetAt(FX_STRSIZE nIndex, FX_WCHAR ch)
 | 
|  {
 | 
|      if (m_pData == NULL) {
 | 
| 
 |