Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
index bbfd4cc680b249ced935ac2e2017b72acf4fd2e1..df154eae9092fd12a67978d0a1ef4218a7aaa697 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
@@ -51,7 +51,7 @@ CPDF_SimpleParser::CPDF_SimpleParser(FX_LPCBYTE pData, FX_DWORD dwSize) |
} |
CPDF_SimpleParser::CPDF_SimpleParser(FX_BSTR str) |
{ |
- m_pData = str; |
+ m_pData = str.GetPtr(); |
m_dwSize = str.GetLength(); |
m_dwCurPos = 0; |
} |
@@ -198,7 +198,7 @@ FX_BOOL CPDF_SimpleParser::SearchToken(FX_BSTR token) |
{ |
int token_len = token.GetLength(); |
while (m_dwCurPos < m_dwSize - token_len) { |
- if (FXSYS_memcmp32(m_pData + m_dwCurPos, token, token_len) == 0) { |
+ if (FXSYS_memcmp32(m_pData + m_dwCurPos, token.GetPtr(), token_len) == 0) { |
break; |
} |
m_dwCurPos ++; |