Index: core/fpdfapi/fpdf_parser/cpdf_parser.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_parser.cpp b/core/fpdfapi/fpdf_parser/cpdf_parser.cpp |
index c9b8583d1640aac68f3f0a18009de3587707ad26..3ee53e6cf9f3023149f55145b5516f9ad1222107 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_parser.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_parser.cpp |
@@ -1538,9 +1538,8 @@ CPDF_Parser::Error CPDF_Parser::StartAsyncParse(IFX_FileRead* pFileAccess) { |
FX_FILESIZE dwFirstXRefOffset = m_pSyntax->SavePos(); |
FX_BOOL bXRefRebuilt = FALSE; |
- FX_BOOL bLoadV4 = FALSE; |
- if (!(bLoadV4 = LoadCrossRefV4(dwFirstXRefOffset, 0, FALSE)) && |
- !LoadCrossRefV5(&dwFirstXRefOffset, TRUE)) { |
+ FX_BOOL bLoadV4 = LoadCrossRefV4(dwFirstXRefOffset, 0, FALSE); |
+ if (!bLoadV4 && !LoadCrossRefV5(&dwFirstXRefOffset, TRUE)) { |
if (!RebuildCrossRef()) |
return FORMAT_ERROR; |