Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a34ece4c
Commit
a34ece4c
authored
Sep 02, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added SetInterfaceSafetyOptions implementation.
parent
0491b032
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
vbscript.c
dlls/vbscript/vbscript.c
+12
-2
No files found.
dlls/vbscript/vbscript.c
View file @
a34ece4c
...
@@ -53,6 +53,7 @@ struct VBScript {
...
@@ -53,6 +53,7 @@ struct VBScript {
LONG
ref
;
LONG
ref
;
DWORD
safeopt
;
SCRIPTSTATE
state
;
SCRIPTSTATE
state
;
IActiveScriptSite
*
site
;
IActiveScriptSite
*
site
;
script_ctx_t
*
ctx
;
script_ctx_t
*
ctx
;
...
@@ -431,6 +432,8 @@ static ULONG WINAPI VBScriptSafety_Release(IObjectSafety *iface)
...
@@ -431,6 +432,8 @@ static ULONG WINAPI VBScriptSafety_Release(IObjectSafety *iface)
return
IActiveScript_Release
(
&
This
->
IActiveScript_iface
);
return
IActiveScript_Release
(
&
This
->
IActiveScript_iface
);
}
}
#define SUPPORTED_OPTIONS (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER)
static
HRESULT
WINAPI
VBScriptSafety_GetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
static
HRESULT
WINAPI
VBScriptSafety_GetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
*
pdwSupportedOptions
,
DWORD
*
pdwEnabledOptions
)
DWORD
*
pdwSupportedOptions
,
DWORD
*
pdwEnabledOptions
)
{
{
...
@@ -443,8 +446,14 @@ static HRESULT WINAPI VBScriptSafety_SetInterfaceSafetyOptions(IObjectSafety *if
...
@@ -443,8 +446,14 @@ static HRESULT WINAPI VBScriptSafety_SetInterfaceSafetyOptions(IObjectSafety *if
DWORD
dwOptionSetMask
,
DWORD
dwEnabledOptions
)
DWORD
dwOptionSetMask
,
DWORD
dwEnabledOptions
)
{
{
VBScript
*
This
=
impl_from_IObjectSafety
(
iface
);
VBScript
*
This
=
impl_from_IObjectSafety
(
iface
);
FIXME
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
dwOptionSetMask
,
dwEnabledOptions
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
dwOptionSetMask
,
dwEnabledOptions
);
if
(
dwOptionSetMask
&
~
SUPPORTED_OPTIONS
)
return
E_FAIL
;
This
->
safeopt
=
(
dwEnabledOptions
&
dwOptionSetMask
)
|
(
This
->
safeopt
&
~
dwOptionSetMask
)
|
INTERFACE_USES_DISPEX
;
return
S_OK
;
}
}
static
const
IObjectSafetyVtbl
VBScriptSafetyVtbl
=
{
static
const
IObjectSafetyVtbl
VBScriptSafetyVtbl
=
{
...
@@ -472,6 +481,7 @@ HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pU
...
@@ -472,6 +481,7 @@ HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pU
ret
->
ref
=
1
;
ret
->
ref
=
1
;
ret
->
state
=
SCRIPTSTATE_UNINITIALIZED
;
ret
->
state
=
SCRIPTSTATE_UNINITIALIZED
;
ret
->
safeopt
=
INTERFACE_USES_DISPEX
;
hres
=
IActiveScript_QueryInterface
(
&
ret
->
IActiveScript_iface
,
riid
,
ppv
);
hres
=
IActiveScript_QueryInterface
(
&
ret
->
IActiveScript_iface
,
riid
,
ppv
);
IActiveScript_Release
(
&
ret
->
IActiveScript_iface
);
IActiveScript_Release
(
&
ret
->
IActiveScript_iface
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment