summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/IEView.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-06-29 09:18:52 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-06-29 09:18:52 +0000
commit9c9afbb56c8f5ac3e302d0073222e95162513004 (patch)
tree7d1e870eacec1f49d1f8abb7eb707aa105e31407 /plugins/IEView/src/IEView.cpp
parenta743c7d531c07c1fc2a778d7e15189f124aa6e48 (diff)
IEView: fix(?) avatar path, code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/IEView.cpp')
-rw-r--r--plugins/IEView/src/IEView.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp
index a2752826f9..d57f9c8582 100644
--- a/plugins/IEView/src/IEView.cpp
+++ b/plugins/IEView/src/IEView.cpp
@@ -1140,43 +1140,4 @@ void IEView::navigate(IEVIEWNAVIGATE *nav)
navigate(nav->urlW);
else
navigate(nav->url);
-}
-
-VARIANT IEView::CallJScript(const CMString strFunc, size_t nPCount, const CMString strArgs, ...)
-{
- VARIANT vaResult = { 0 };
- CComPtr<IDispatch> spScript;
- if (FAILED(getDocument()->get_Script(&spScript))) return vaResult;
-
- BSTR bstrMember(SysAllocString(strFunc));
- DISPID dispid = NULL;
-
- HRESULT hr = spScript->GetIDsOfNames(IID_NULL, &bstrMember, 1, LOCALE_SYSTEM_DEFAULT, &dispid);
- if (FAILED(hr)) return vaResult;
-
- va_list(args);
- va_start(args, strArgs);
-
- DISPPARAMS dispparams;
- memset(&dispparams, 0, sizeof dispparams);
- dispparams.cArgs = (UINT)nPCount;
- dispparams.rgvarg = new VARIANT[dispparams.cArgs];
- dispparams.cNamedArgs = 0;
-
- for (size_t i = 0; i < nPCount; i++)
- {
- dispparams.rgvarg[i].bstrVal = SysAllocString(va_arg(args, CMString));
- dispparams.rgvarg[i].vt = VT_BSTR;
- }
-
- EXCEPINFO excepInfo = { 0 };
-
- UINT nArgErr = (UINT)-1;
-
- hr = spScript->Invoke(dispid, IID_NULL, 0, DISPATCH_METHOD, &dispparams, &vaResult, &excepInfo, &nArgErr);
-
- for (size_t i = 0; i < nPCount; i++) SysFreeString(dispparams.rgvarg[i].bstrVal);
-
- delete[] dispparams.rgvarg;
- return vaResult;
} \ No newline at end of file