Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7d95c210
Commit
7d95c210
authored
Apr 07, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added IObjectSafety implementation.
parent
d02c37aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
jscript.c
dlls/jscript/jscript.c
+22
-3
No files found.
dlls/jscript/jscript.c
View file @
7d95c210
...
...
@@ -32,6 +32,8 @@ typedef struct {
const
IObjectSafetyVtbl
*
lpIObjectSafetyVtbl
;
LONG
ref
;
DWORD
safeopt
;
}
JScript
;
#define ACTSCRIPT(x) ((IActiveScript*) &(x)->lpIActiveScriptVtbl)
...
...
@@ -395,19 +397,35 @@ static ULONG WINAPI JScriptSafety_Release(IObjectSafety *iface)
return
IActiveScript_Release
(
ACTSCRIPT
(
This
));
}
#define SUPPORTED_OPTIONS (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER)
static
HRESULT
WINAPI
JScriptSafety_GetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
*
pdwSupportedOptions
,
DWORD
*
pdwEnabledOptions
)
{
JScript
*
This
=
OBJSAFETY_THIS
(
iface
);
FIXME
(
"(%p)->(%s %p %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
pdwSupportedOptions
,
pdwEnabledOptions
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s %p %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
pdwSupportedOptions
,
pdwEnabledOptions
);
if
(
!
pdwSupportedOptions
||
!
pdwEnabledOptions
)
return
E_POINTER
;
*
pdwSupportedOptions
=
SUPPORTED_OPTIONS
;
*
pdwEnabledOptions
=
This
->
safeopt
;
return
S_OK
;
}
static
HRESULT
WINAPI
JScriptSafety_SetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
dwOptionSetMask
,
DWORD
dwEnabledOptions
)
{
JScript
*
This
=
OBJSAFETY_THIS
(
iface
);
FIXME
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
dwOptionSetMask
,
dwEnabledOptions
);
TRACE
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
dwOptionSetMask
,
dwEnabledOptions
);
if
(
dwOptionSetMask
&
~
SUPPORTED_OPTIONS
)
return
E_FAIL
;
This
->
safeopt
=
dwEnabledOptions
&
dwEnabledOptions
;
return
S_OK
;
}
...
...
@@ -439,6 +457,7 @@ HRESULT WINAPI JScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUn
ret
->
lpIActiveScriptPropertyVtbl
=
&
JScriptPropertyVtbl
;
ret
->
lpIObjectSafetyVtbl
=
&
JScriptSafetyVtbl
;
ret
->
ref
=
1
;
ret
->
safeopt
=
INTERFACE_USES_DISPEX
;
hres
=
IActiveScript_QueryInterface
(
ACTSCRIPT
(
ret
),
riid
,
ppv
);
IActiveScript_Release
(
ACTSCRIPT
(
ret
));
...
...
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