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
9f907f63
Commit
9f907f63
authored
Aug 30, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added IActiveScript::SetScriptSite implementation.
parent
ef604e38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
vbscript.c
dlls/vbscript/vbscript.c
+25
-2
vbscript.h
dlls/vbscript/vbscript.h
+4
-0
No files found.
dlls/vbscript/vbscript.c
View file @
9f907f63
...
...
@@ -89,8 +89,11 @@ static ULONG WINAPI VBScript_Release(IActiveScript *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
iface
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
{
if
(
This
->
site
)
IActiveScriptSite_Release
(
This
->
site
);
heap_free
(
This
);
}
return
ref
;
}
...
...
@@ -98,7 +101,27 @@ static ULONG WINAPI VBScript_Release(IActiveScript *iface)
static
HRESULT
WINAPI
VBScript_SetScriptSite
(
IActiveScript
*
iface
,
IActiveScriptSite
*
pass
)
{
VBScript
*
This
=
impl_from_IActiveScript
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pass
);
LCID
lcid
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pass
);
if
(
!
pass
)
return
E_POINTER
;
if
(
This
->
site
)
return
E_UNEXPECTED
;
if
(
InterlockedCompareExchange
(
&
This
->
thread_id
,
GetCurrentThreadId
(),
0
))
return
E_UNEXPECTED
;
This
->
site
=
pass
;
IActiveScriptSite_AddRef
(
This
->
site
);
hres
=
IActiveScriptSite_GetLCID
(
This
->
site
,
&
lcid
);
if
(
hres
==
S_OK
)
This
->
lcid
=
lcid
;
return
S_OK
;
}
...
...
dlls/vbscript/vbscript.h
View file @
9f907f63
...
...
@@ -24,6 +24,10 @@ struct VBScript {
IActiveScriptParse
IActiveScriptParse_iface
;
LONG
ref
;
IActiveScriptSite
*
site
;
LONG
thread_id
;
LCID
lcid
;
};
HRESULT
WINAPI
VBScriptFactory_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
);
...
...
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