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
a4824803
Commit
a4824803
authored
Mar 20, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript/tests: Added named item ref count tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c07ade82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
run.c
dlls/vbscript/tests/run.c
+17
-2
No files found.
dlls/vbscript/tests/run.c
View file @
a4824803
...
...
@@ -974,6 +974,18 @@ static IDispatchExVtbl RefObjVtbl = {
static
IDispatchEx
RefObj
=
{
&
RefObjVtbl
};
static
ULONG
global_ref
;
static
ULONG
WINAPI
Global_AddRef
(
IDispatchEx
*
iface
)
{
return
++
global_ref
;
}
static
ULONG
WINAPI
Global_Release
(
IDispatchEx
*
iface
)
{
return
--
global_ref
;
}
static
HRESULT
WINAPI
Global_GetDispID
(
IDispatchEx
*
iface
,
BSTR
bstrName
,
DWORD
grfdex
,
DISPID
*
pid
)
{
if
(
!
strcmp_wa
(
bstrName
,
"ok"
))
{
...
...
@@ -1476,8 +1488,8 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
static
IDispatchExVtbl
GlobalVtbl
=
{
DispatchEx_QueryInterface
,
DispatchEx
_AddRef
,
DispatchEx
_Release
,
Global
_AddRef
,
Global
_Release
,
DispatchEx_GetTypeInfoCount
,
DispatchEx_GetTypeInfo
,
DispatchEx_GetIDsOfNames
,
...
...
@@ -1619,6 +1631,7 @@ static HRESULT WINAPI ActiveScriptSite_GetItemInfo(IActiveScriptSite *iface, LPC
ok
(
0
,
"unexpected pstrName %s
\n
"
,
wine_dbgstr_w
(
pstrName
));
*
ppiunkItem
=
(
IUnknown
*
)
&
Global
;
IUnknown_AddRef
(
*
ppiunkItem
);
return
S_OK
;
}
...
...
@@ -1814,6 +1827,7 @@ static void test_parse_context(void)
static
const
WCHAR
xW
[]
=
{
'x'
,
0
};
static
const
WCHAR
yW
[]
=
{
'y'
,
0
};
global_ref
=
1
;
engine
=
create_and_init_script
(
0
);
if
(
!
engine
)
return
;
...
...
@@ -1855,6 +1869,7 @@ static void test_parse_context(void)
IActiveScriptParse_Release
(
parser
);
close_script
(
engine
);
ok
(
global_ref
==
1
,
"global_ref = %u
\n
"
,
global_ref
);
}
static
void
parse_script_a
(
const
char
*
src
)
...
...
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