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
f05930f0
Commit
f05930f0
authored
Sep 07, 2015
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Add parameter checking to the typelib varargs marshalling test.
parent
5c9526cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+29
-1
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
f05930f0
...
...
@@ -842,7 +842,35 @@ static HRESULT WINAPI Widget_neg_restrict(IWidget* iface, INT *i)
static
HRESULT
WINAPI
Widget_VarArg_Run
(
IWidget
*
iface
,
BSTR
name
,
SAFEARRAY
*
params
,
VARIANT
*
result
)
{
static
const
WCHAR
catW
[]
=
{
'C'
,
'a'
,
't'
,
0
};
static
const
WCHAR
supermanW
[]
=
{
'S'
,
'u'
,
'p'
,
'e'
,
'r'
,
'm'
,
'a'
,
'n'
,
0
};
LONG
bound
;
VARIANT
*
var
;
BSTR
bstr
;
HRESULT
hr
;
trace
(
"VarArg_Run(%p,%p,%p)
\n
"
,
name
,
params
,
result
);
ok
(
!
lstrcmpW
(
name
,
catW
),
"got %s
\n
"
,
wine_dbgstr_w
(
name
));
hr
=
SafeArrayGetLBound
(
params
,
1
,
&
bound
);
ok
(
hr
==
S_OK
,
"SafeArrayGetLBound error %#x
\n
"
,
hr
);
ok
(
bound
==
0
,
"expected 0, got %d
\n
"
,
bound
);
hr
=
SafeArrayGetUBound
(
params
,
1
,
&
bound
);
ok
(
hr
==
S_OK
,
"SafeArrayGetUBound error %#x
\n
"
,
hr
);
ok
(
bound
==
0
,
"expected 0, got %d
\n
"
,
bound
);
hr
=
SafeArrayAccessData
(
params
,
(
void
**
)
&
var
);
ok
(
hr
==
S_OK
,
"SafeArrayAccessData failed with %x
\n
"
,
hr
);
ok
(
V_VT
(
&
var
[
0
])
==
VT_BSTR
,
"expected VT_BSTR, got %d
\n
"
,
V_VT
(
&
var
[
0
]));
bstr
=
V_BSTR
(
&
var
[
0
]);
ok
(
!
lstrcmpW
(
bstr
,
supermanW
),
"got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
hr
=
SafeArrayUnaccessData
(
params
);
ok
(
hr
==
S_OK
,
"SafeArrayUnaccessData error %#x
\n
"
,
hr
);
return
S_OK
;
}
...
...
@@ -1516,7 +1544,7 @@ static void test_typelibmarshal(void)
V_BSTR
(
&
vararg
[
1
])
=
SysAllocString
(
szCat
);
VariantInit
(
&
vararg
[
0
]);
V_VT
(
&
vararg
[
0
])
=
VT_BSTR
;
V_BSTR
(
&
vararg
[
0
])
=
SysAllocString
(
NULL
);
V_BSTR
(
&
vararg
[
0
])
=
SysAllocString
(
szSuperman
);
dispparams
.
cNamedArgs
=
0
;
dispparams
.
cArgs
=
2
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
...
...
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