Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
index b45e23467f28d40f2de5499a5d820bece524d77c..cc517dd4c25f9104a346e8ca2d27cb144fde2009 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
@@ -2562,7 +2562,7 @@ FX_BOOL CPDF_SyntaxParser::SearchWord(FX_BSTR tag, FX_BOOL bWholeWord, FX_BOOL b |
if (!bForward) { |
offset = taglen - 1; |
} |
- FX_LPCBYTE tag_data = tag; |
+ FX_LPCBYTE tag_data = tag.GetPtr(); |
FX_BYTE byte; |
while (1) { |
if (bForward) { |
@@ -2599,7 +2599,7 @@ FX_BOOL CPDF_SyntaxParser::SearchWord(FX_BSTR tag, FX_BOOL bWholeWord, FX_BOOL b |
} |
} |
FX_FILESIZE startpos = bForward ? pos - taglen + 1 : pos; |
- if (!bWholeWord || IsWholeWord(startpos, limit, tag, taglen)) { |
+ if (!bWholeWord || IsWholeWord(startpos, limit, tag.GetPtr(), taglen)) { |
m_Pos = startpos; |
return TRUE; |
} |