| Index: core/fxcrt/include/fx_basic.h
|
| diff --git a/core/fxcrt/include/fx_basic.h b/core/fxcrt/include/fx_basic.h
|
| index 7121ffcd0bd81cd8cb4d4932fa18dbd1c7ed4e87..42072f82a856f3cef5390a34fb5ab209697d8fef 100644
|
| --- a/core/fxcrt/include/fx_basic.h
|
| +++ b/core/fxcrt/include/fx_basic.h
|
| @@ -277,7 +277,7 @@ class CFX_ArrayTemplate : public CFX_BasicArray {
|
|
|
| const TYPE GetAt(int nIndex) const {
|
| if (nIndex < 0 || nIndex >= m_nSize) {
|
| - return (const TYPE&)(*(volatile const TYPE*)NULL);
|
| + IMMEDIATE_CRASH();
|
| }
|
| return ((const TYPE*)m_pData)[nIndex];
|
| }
|
| @@ -292,7 +292,7 @@ class CFX_ArrayTemplate : public CFX_BasicArray {
|
|
|
| TYPE& ElementAt(int nIndex) {
|
| if (nIndex < 0 || nIndex >= m_nSize) {
|
| - return *(TYPE*)NULL;
|
| + IMMEDIATE_CRASH();
|
| }
|
| return ((TYPE*)m_pData)[nIndex];
|
| }
|
|
|