Index: core/fpdfapi/parser/fpdf_parser_utility.cpp |
diff --git a/core/fpdfapi/parser/fpdf_parser_utility.cpp b/core/fpdfapi/parser/fpdf_parser_utility.cpp |
index ef37d8f39e35997850f2fb96059e64074977326c..9583ea70bcb41c35acfe8a3a09f9f84c2661bbfa 100644 |
--- a/core/fpdfapi/parser/fpdf_parser_utility.cpp |
+++ b/core/fpdfapi/parser/fpdf_parser_utility.cpp |
@@ -69,7 +69,7 @@ const char PDF_CharType[256] = { |
'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', |
'R', 'R', 'R', 'R', 'R', 'R', 'R', 'W'}; |
-int32_t GetHeaderOffset(IFX_SeekableReadStream* pFile) { |
+int32_t GetHeaderOffset(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile) { |
const size_t kBufSize = 4; |
uint8_t buf[kBufSize]; |
for (int32_t offset = 0; offset <= 1024; ++offset) { |