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 1a49ffd6b75cf1b5df9f91482c6fab2cf32d4de7..2772d9825eddb9f5b61cf6895c1f4bcfc448b63d 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
@@ -2558,7 +2558,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) { |
@@ -2595,7 +2595,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; |
} |