Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
0491b032
Commit
0491b032
authored
13 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vbscript: Added IObjectSafety stub implementation.
parent
3a268796
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/vbscript/vbscript.c
+53
-0
53 additions, 0 deletions
dlls/vbscript/vbscript.c
dlls/vbscript/vbscript_main.c
+1
-0
1 addition, 0 deletions
dlls/vbscript/vbscript_main.c
with
54 additions
and
0 deletions
dlls/vbscript/vbscript.c
+
53
−
0
View file @
0491b032
...
...
@@ -26,6 +26,7 @@
#include
"windef.h"
#include
"winbase.h"
#include
"ole2.h"
#include
"objsafe.h"
#include
"vbscript.h"
...
...
@@ -48,6 +49,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
struct
VBScript
{
IActiveScript
IActiveScript_iface
;
IActiveScriptParse
IActiveScriptParse_iface
;
IObjectSafety
IObjectSafety_iface
;
LONG
ref
;
...
...
@@ -135,6 +137,9 @@ static HRESULT WINAPI VBScript_QueryInterface(IActiveScript *iface, REFIID riid,
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IActiveScriptParse
))
{
TRACE
(
"(%p)->(IID_IActiveScriptParse %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IActiveScriptParse_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IObjectSafety
))
{
TRACE
(
"(%p)->(IID_IObjectSafety %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IObjectSafety_iface
;
}
else
{
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
...
...
@@ -403,6 +408,53 @@ static const IActiveScriptParseVtbl VBScriptParseVtbl = {
VBScriptParse_ParseScriptText
};
static
inline
VBScript
*
impl_from_IObjectSafety
(
IObjectSafety
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
VBScript
,
IObjectSafety_iface
);
}
static
HRESULT
WINAPI
VBScriptSafety_QueryInterface
(
IObjectSafety
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
VBScript
*
This
=
impl_from_IObjectSafety
(
iface
);
return
IActiveScript_QueryInterface
(
&
This
->
IActiveScript_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
VBScriptSafety_AddRef
(
IObjectSafety
*
iface
)
{
VBScript
*
This
=
impl_from_IObjectSafety
(
iface
);
return
IActiveScript_AddRef
(
&
This
->
IActiveScript_iface
);
}
static
ULONG
WINAPI
VBScriptSafety_Release
(
IObjectSafety
*
iface
)
{
VBScript
*
This
=
impl_from_IObjectSafety
(
iface
);
return
IActiveScript_Release
(
&
This
->
IActiveScript_iface
);
}
static
HRESULT
WINAPI
VBScriptSafety_GetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
*
pdwSupportedOptions
,
DWORD
*
pdwEnabledOptions
)
{
VBScript
*
This
=
impl_from_IObjectSafety
(
iface
);
FIXME
(
"(%p)->(%s %p %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
pdwSupportedOptions
,
pdwEnabledOptions
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
VBScriptSafety_SetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
dwOptionSetMask
,
DWORD
dwEnabledOptions
)
{
VBScript
*
This
=
impl_from_IObjectSafety
(
iface
);
FIXME
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
dwOptionSetMask
,
dwEnabledOptions
);
return
E_NOTIMPL
;
}
static
const
IObjectSafetyVtbl
VBScriptSafetyVtbl
=
{
VBScriptSafety_QueryInterface
,
VBScriptSafety_AddRef
,
VBScriptSafety_Release
,
VBScriptSafety_GetInterfaceSafetyOptions
,
VBScriptSafety_SetInterfaceSafetyOptions
};
HRESULT
WINAPI
VBScriptFactory_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
{
VBScript
*
ret
;
...
...
@@ -416,6 +468,7 @@ HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pU
ret
->
IActiveScript_iface
.
lpVtbl
=
&
VBScriptVtbl
;
ret
->
IActiveScriptParse_iface
.
lpVtbl
=
&
VBScriptParseVtbl
;
ret
->
IObjectSafety_iface
.
lpVtbl
=
&
VBScriptSafetyVtbl
;
ret
->
ref
=
1
;
ret
->
state
=
SCRIPTSTATE_UNINITIALIZED
;
...
...
This diff is collapsed.
Click to expand it.
dlls/vbscript/vbscript_main.c
+
1
−
0
View file @
0491b032
...
...
@@ -27,6 +27,7 @@
#include
"initguid.h"
#include
"ole2.h"
#include
"objsafe.h"
#include
"rpcproxy.h"
#include
"vbscript.h"
#include
"vbscript_classes.h"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment