Index: fpdfsdk/javascript/Document.cpp |
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp |
index bd9e540cf3f850998357c489ac1e954e2c8e5844..f8edf97247516762c4efd154391c2db4ba0b4e8f 100644 |
--- a/fpdfsdk/javascript/Document.cpp |
+++ b/fpdfsdk/javascript/Document.cpp |
@@ -408,7 +408,7 @@ FX_BOOL Document::mailForm(IJS_Context* cc, |
return FALSE; |
pRuntime->BeginBlock(); |
- CPDFSDK_FormFillEnvironment* pEnv = pContext->GetReaderEnv(); |
+ CPDFSDK_FormFillEnvironment* pEnv = pContext->GetFormFillEnv(); |
pEnv->JS_docmailForm(textBuf.GetBuffer(), textBuf.GetLength(), bUI, |
cTo.c_str(), cSubject.c_str(), cCc.c_str(), cBcc.c_str(), |
cMsg.c_str()); |