diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-07 17:09:07 -0800 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-07 17:09:07 -0800 |
commit | 35e6b87afbb94e2a74340a5e8fd77e79e88f6025 (patch) | |
tree | aad547b55da63ff529a23577160337d41b33484a /fpdfsdk/src | |
parent | bb5ef88ea69242521915cabde162c9156b0ae947 (diff) | |
download | pdfium-35e6b87afbb94e2a74340a5e8fd77e79e88f6025.tar.xz |
Correct the forminfo version check in pdfium
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r-- | fpdfsdk/src/fpdfformfill.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfformfill.cpp b/fpdfsdk/src/fpdfformfill.cpp index 38a71fc6d9..41b1e36fd9 100644 --- a/fpdfsdk/src/fpdfformfill.cpp +++ b/fpdfsdk/src/fpdfformfill.cpp @@ -86,7 +86,7 @@ DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, FPDF_ DLLEXPORT FPDF_FORMHANDLE STDCALL FPDFDOC_InitFormFillEnviroument(FPDF_DOCUMENT document, FPDF_FORMFILLINFO* formInfo) { - if(!document || !formInfo || formInfo->version!=1) + if(!document || !formInfo || formInfo->version!=2) return NULL; CPDFXFA_Document * pDocument = (CPDFXFA_Document*) document; CPDFDoc_Environment * pEnv = NULL; |