| Index: fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp
|
| diff --git a/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp b/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp
|
| index 8d9356990bdea26f68a710f49cadaf088f7f12ca..4c390ae917f5ce016b42b9aa4b635c93e18884a9 100644
|
| --- a/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp
|
| +++ b/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp
|
| @@ -17,10 +17,10 @@ FWL_Error CXFA_FWLAdapterTimerMgr::Start(IFWL_Timer* pTimer,
|
| uint32_t dwElapse,
|
| bool bImmediately,
|
| IFWL_TimerInfo** pTimerInfo) {
|
| - if (!m_pEnv)
|
| + if (!m_pFormFillEnv)
|
| return FWL_Error::Indefinite;
|
|
|
| - int32_t id_event = m_pEnv->SetTimer(dwElapse, TimerProc);
|
| + int32_t id_event = m_pFormFillEnv->SetTimer(dwElapse, TimerProc);
|
| if (!s_TimerArray)
|
| s_TimerArray = new std::vector<CFWL_TimerInfo*>;
|
|
|
| @@ -30,11 +30,11 @@ FWL_Error CXFA_FWLAdapterTimerMgr::Start(IFWL_Timer* pTimer,
|
| }
|
|
|
| FWL_Error CXFA_FWLAdapterTimerMgr::Stop(IFWL_TimerInfo* pTimerInfo) {
|
| - if (!pTimerInfo || !m_pEnv)
|
| + if (!pTimerInfo || !m_pFormFillEnv)
|
| return FWL_Error::Indefinite;
|
|
|
| CFWL_TimerInfo* pInfo = static_cast<CFWL_TimerInfo*>(pTimerInfo);
|
| - m_pEnv->KillTimer(pInfo->idEvent);
|
| + m_pFormFillEnv->KillTimer(pInfo->idEvent);
|
| if (s_TimerArray) {
|
| auto it = std::find(s_TimerArray->begin(), s_TimerArray->end(), pInfo);
|
| if (it != s_TimerArray->end()) {
|
|
|