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
12db3a10
Commit
12db3a10
authored
Sep 25, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msscript.ocx: Fix VARIANT access.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f99b9868
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
msscript.c
dlls/msscript.ocx/tests/msscript.c
+2
-6
No files found.
dlls/msscript.ocx/tests/msscript.c
View file @
12db3a10
...
...
@@ -1525,11 +1525,9 @@ static void test_IScriptControl_Eval(void)
parse_flags
=
SCRIPTTEXT_ISEXPRESSION
;
script_str
=
a2bstr
(
"var1 = 1 + 1"
);
V_VT
(
&
var
)
=
VT_NULL
;
V_I4
(
&
var
)
=
0xdeadbeef
;
hr
=
IScriptControl_Eval
(
sc
,
script_str
,
&
var
);
ok
(
hr
==
S_OK
,
"IScriptControl_Eval failed: 0x%08x.
\n
"
,
hr
);
ok
((
V_VT
(
&
var
)
==
VT_EMPTY
)
&&
(
V_I4
(
&
var
)
==
0xdeadbeef
),
"V_VT(var) = %d, V_I4(var) = %d.
\n
"
,
V_VT
(
&
var
),
V_I4
(
&
var
));
ok
(
V_VT
(
&
var
)
==
VT_EMPTY
,
"V_VT(var) = %d.
\n
"
,
V_VT
(
&
var
));
SysFreeString
(
script_str
);
CHECK_CALLED
(
SetScriptState_STARTED
);
CHECK_CALLED
(
ParseScriptText
);
...
...
@@ -1657,11 +1655,9 @@ static void test_IScriptControl_AddCode(void)
parse_flags
=
SCRIPTTEXT_ISEXPRESSION
;
code_str
=
a2bstr
(
"var2 = 10 + var1"
);
V_VT
(
&
var
)
=
VT_NULL
;
V_I4
(
&
var
)
=
0xdeadbeef
;
hr
=
IScriptControl_Eval
(
sc
,
code_str
,
&
var
);
ok
(
hr
==
S_OK
,
"IScriptControl_Eval failed: 0x%08x.
\n
"
,
hr
);
ok
((
V_VT
(
&
var
)
==
VT_EMPTY
)
&&
(
V_I4
(
&
var
)
==
0xdeadbeef
),
"V_VT(var) = %d, V_I4(var) = %d.
\n
"
,
V_VT
(
&
var
),
V_I4
(
&
var
));
ok
(
V_VT
(
&
var
)
==
VT_EMPTY
,
"V_VT(var) = %d.
\n
"
,
V_VT
(
&
var
));
SysFreeString
(
code_str
);
CHECK_CALLED
(
ParseScriptText
);
...
...
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