summaryrefslogtreecommitdiff
path: root/testing/embedder_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r--testing/embedder_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index e161867732..1c3c2feb64 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -167,7 +167,7 @@ int Get_Block(void* param, unsigned long pos, unsigned char* pBuf,
return 1;
}
-bool Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) {
+FPDF_BOOL Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) {
return true;
}
@@ -262,7 +262,7 @@ bool EmbedderTest::OpenDocument(const std::string& filename) {
return false;
}
int docType = DOCTYPE_PDF;
- if (FPDF_HasXFAField(document_, docType))
+ if (FPDF_HasXFAField(document_, &docType))
{
if (docType != DOCTYPE_PDF)
(void) FPDF_LoadXFA(document_);