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
3ca5f8bb
Commit
3ca5f8bb
authored
Feb 07, 2007
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add a test for the version method.
parent
7432a715
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
12 deletions
+27
-12
iface.c
dlls/msi/tests/iface.c
+27
-12
No files found.
dlls/msi/tests/iface.c
View file @
3ca5f8bb
...
...
@@ -170,32 +170,47 @@ static void test_msi_invoke(void)
r
=
IDispatch_Invoke
(
installer
,
dispid
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
param
,
&
result
,
NULL
,
NULL
);
todo_wine
ok
(
r
==
S_OK
,
"dispatch failed %08x
\n
"
,
r
);
if
(
FAIL
ED
(
r
))
if
(
SUCCEED
ED
(
r
))
{
skip
(
"failed to create record
\n
"
);
return
;
}
ok
(
V_VT
(
&
result
)
==
VT_DISPATCH
,
"type wrong
\n
"
);
record
=
V_DISPATCH
(
&
result
);
ok
(
V_VT
(
&
result
)
==
VT_DISPATCH
,
"type wrong
\n
"
);
memset
(
&
result
,
0
,
sizeof
result
);
dispid
=
get_dispid
(
record
,
"FieldCount"
);
record
=
V_DISPATCH
(
&
result
);
param
.
cArgs
=
0
;
param
.
cNamedArgs
=
0
;
param
.
rgvarg
=
&
varg
;
param
.
rgdispidNamedArgs
=
&
arg
;
r
=
IDispatch_Invoke
(
record
,
dispid
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
,
&
param
,
&
result
,
NULL
,
NULL
);
ok
(
r
==
S_OK
,
"dispatch failed %08x
\n
"
,
r
);
ok
(
V_VT
(
&
result
)
==
VT_I4
,
"type wrong
\n
"
);
ok
(
V_I4
(
&
result
)
==
1
,
"field count wrong
\n
"
);
IDispatch_Release
(
record
);
}
else
skip
(
"failed to create record
\n
"
);
memset
(
&
result
,
0
,
sizeof
result
);
dispid
=
get_dispid
(
record
,
"FieldCount
"
);
dispid
=
get_dispid
(
installer
,
"Version
"
);
param
.
cArgs
=
0
;
param
.
cNamedArgs
=
0
;
param
.
rgvarg
=
&
varg
;
param
.
rgdispidNamedArgs
=
&
arg
;
r
=
IDispatch_Invoke
(
record
,
dispid
,
&
IID_NULL
,
0
,
r
=
IDispatch_Invoke
(
installer
,
dispid
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
,
&
param
,
&
result
,
NULL
,
NULL
);
todo_wine
{
ok
(
r
==
S_OK
,
"dispatch failed %08x
\n
"
,
r
);
ok
(
V_VT
(
&
result
)
==
VT_BSTR
,
"type wrong %d
\n
"
,
V_VT
(
&
result
));
}
ok
(
V_VT
(
&
result
)
==
VT_I4
,
"type wrong
\n
"
);
ok
(
V_I4
(
&
result
)
==
1
,
"field count wrong
\n
"
);
IDispatch_Release
(
record
);
IDispatch_Release
(
installer
);
}
...
...
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