Chromium Code Reviews| Index: fpdfsdk/src/fsdk_actionhandler.cpp |
| diff --git a/fpdfsdk/src/fsdk_actionhandler.cpp b/fpdfsdk/src/fsdk_actionhandler.cpp |
| index 3d1a1571a1840b5b9504b48139975eaf4a4ab968..284e4c06e063461e3eda2fba6221a9cd53c5b03a 100644 |
| --- a/fpdfsdk/src/fsdk_actionhandler.cpp |
| +++ b/fpdfsdk/src/fsdk_actionhandler.cpp |
| @@ -159,7 +159,7 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteLinkAction(const CPDF_Action& action, |
| pContext->OnLink_MouseUp(pDocument); |
| CFX_WideString csInfo; |
| - FX_BOOL bRet = pContext->RunScript(swJS, csInfo); |
| + FX_BOOL bRet = pContext->RunScript(swJS, &csInfo); |
| if (!bRet) { |
| // FIXME: return error. |
| } |
| @@ -347,7 +347,7 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteScreenAction( |
| // } |
| CFX_WideString csInfo; |
| - FX_BOOL bRet = pContext->RunScript(swJS, csInfo); |
| + FX_BOOL bRet = pContext->RunScript(swJS, &csInfo); |
| if (!bRet) { |
| // CBCL_FormNotify::MsgBoxJSError(pPageView->GetPageViewWnd(), |
|
Lei Zhang
2015/10/09 01:09:29
I wish I didn't see this. Feel free to deal with i
|
| // csInfo); |
| @@ -398,7 +398,7 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteBookMark(const CPDF_Action& action, |
| pContext->OnBookmark_MouseUp(pBookmark); |
| CFX_WideString csInfo; |
| - FX_BOOL bRet = pContext->RunScript(swJS, csInfo); |
| + FX_BOOL bRet = pContext->RunScript(swJS, &csInfo); |
| if (!bRet) { |
| // CBCL_FormNotify::MsgBoxJSError(pPageView->GetPageViewWnd(), |
| // csInfo); |
| @@ -601,7 +601,7 @@ void CPDFSDK_ActionHandler::RunFieldJavaScript(CPDFSDK_Document* pDocument, |
| } |
| CFX_WideString csInfo; |
| - FX_BOOL bRet = pContext->RunScript(script, csInfo); |
| + FX_BOOL bRet = pContext->RunScript(script, &csInfo); |
| if (!bRet) { |
| // CBCL_FormNotify::MsgBoxJSError(pPageView->GetPageViewWnd(), csInfo); |
| } |
| @@ -626,7 +626,7 @@ void CPDFSDK_ActionHandler::RunDocumentOpenJavaScript( |
| pContext->OnDoc_Open(pDocument, sScriptName); |
| CFX_WideString csInfo; |
| - FX_BOOL bRet = pContext->RunScript(script, csInfo); |
| + FX_BOOL bRet = pContext->RunScript(script, &csInfo); |
| if (!bRet) { |
| // CBCL_FormNotify::MsgBoxJSError(pPageView->GetPageViewWnd(), csInfo); |
| } |
| @@ -682,7 +682,7 @@ void CPDFSDK_ActionHandler::RunDocumentPageJavaScript( |
| } |
| CFX_WideString csInfo; |
| - FX_BOOL bRet = pContext->RunScript(script, csInfo); |
| + FX_BOOL bRet = pContext->RunScript(script, &csInfo); |
| if (!bRet) { |
| // CBCL_FormNotify::MsgBoxJSError(pPageView->GetPageViewWnd(), csInfo); |
| } |