| 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 e7f8c01d416fad17971cfd3eebe6002fe82f0f99..c097e1fc0923fcc3cec68cd7b254fb27029b8f17 100644
|
| --- a/core/src/fxcrt/fx_basic_wstring.cpp
|
| +++ b/core/src/fxcrt/fx_basic_wstring.cpp
|
| @@ -32,7 +32,7 @@ CFX_WideString::StringData* CFX_WideString::StringData::Create(int nLen) {
|
| int usableLen = (totalSize - overhead) / sizeof(FX_WCHAR);
|
| FXSYS_assert(usableLen >= nLen);
|
|
|
| - void* pData = FX_Alloc(uint8_t, iSize.ValueOrDie());
|
| + void* pData = FX_Alloc(uint8_t, totalSize);
|
| return new (pData) StringData(nLen, usableLen);
|
| }
|
| CFX_WideString::~CFX_WideString() {
|
|
|