summaryrefslogtreecommitdiff
path: root/extensions/source/activex/main
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2002-09-11 13:36:19 +0000
committerMikhail Voitenko <mav@openoffice.org>2002-09-11 13:36:19 +0000
commit5180ef84297567c1869722cca655d94a70cd74d5 (patch)
treef375b952c21d70990b30aeaa0d21071fc956fa15 /extensions/source/activex/main
parent0e96ed6491730864ec34ed77bca762e3225e3554 (diff)
#102967# use parseSmart
Diffstat (limited to 'extensions/source/activex/main')
-rw-r--r--extensions/source/activex/main/SOActiveX.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/extensions/source/activex/main/SOActiveX.cpp b/extensions/source/activex/main/SOActiveX.cpp
index ca367fa7df76..b50a5be581c3 100644
--- a/extensions/source/activex/main/SOActiveX.cpp
+++ b/extensions/source/activex/main/SOActiveX.cpp
@@ -284,10 +284,12 @@ HRESULT CSOActiveX::GetUrlStruct( OLECHAR* sUrl, CComPtr<IDispatch>& pdispUrl )
if( !SUCCEEDED( hr ) ) return hr;
CComVariant dummyResult;
- CComVariant aInOutParam;
- aInOutParam.ppdispVal = &pdispUrl;
- aInOutParam.vt = VT_DISPATCH | VT_BYREF;
- hr = ExecuteFunc( pdispTransformer, L"parseStrict", &aInOutParam, 1, &dummyResult );
+ CComVariant aParam[2];
+ aParam[1].ppdispVal = &pdispUrl;
+ aParam[1].vt = VT_DISPATCH | VT_BYREF;
+ aParam[0] = CComVariant( L"file:///" );
+
+ hr = ExecuteFunc( pdispTransformer, L"parseSmart", aParam, 2, &dummyResult );
if( !SUCCEEDED( hr ) || dummyResult.vt != VT_BOOL || !dummyResult.boolVal ) return hr;
return S_OK;