Index: core/src/fxcrt/fx_basic_bstring.cpp |
diff --git a/core/src/fxcrt/fx_basic_bstring.cpp b/core/src/fxcrt/fx_basic_bstring.cpp |
index 895c8e560ed5587bff0da2dda99b0693ebe7e4f5..c3fb908498feb4a3a96bd27a4f44a1a162d44924 100644 |
--- a/core/src/fxcrt/fx_basic_bstring.cpp |
+++ b/core/src/fxcrt/fx_basic_bstring.cpp |
@@ -276,7 +276,7 @@ bool CFX_ByteString::EqualNoCase(FX_BSTR str) const |
return false; |
} |
FX_LPCBYTE pThis = (FX_LPCBYTE)m_pData->m_String; |
- FX_LPCBYTE pThat = (FX_LPCBYTE)str; |
+ FX_LPCBYTE pThat = str.GetPtr(); |
for (FX_STRSIZE i = 0; i < len; i ++) { |
if ((*pThis) != (*pThat)) { |
FX_BYTE bThis = *pThis; |