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
b7233ba3
Commit
b7233ba3
authored
Jun 04, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jun 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: automation: Implement SummaryInfo::PropertyCount.
parent
61f4fff4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
automation.c
dlls/msi/automation.c
+14
-0
msiserver.idl
dlls/msi/msiserver.idl
+2
-0
msiserver_dispids.h
dlls/msi/msiserver_dispids.h
+1
-0
automation.c
dlls/msi/tests/automation.c
+0
-6
No files found.
dlls/msi/automation.c
View file @
b7233ba3
...
...
@@ -858,6 +858,20 @@ static HRESULT WINAPI SummaryInfoImpl_Invoke(
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_SUMMARYINFO_PROPERTYCOUNT
:
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
{
UINT
count
;
if
((
ret
=
MsiSummaryInfoGetPropertyCount
(
This
->
msiHandle
,
&
count
))
!=
ERROR_SUCCESS
)
ERR
(
"MsiSummaryInfoGetPropertyCount returned %d
\n
"
,
ret
);
else
{
V_VT
(
pVarResult
)
=
VT_I4
;
V_I4
(
pVarResult
)
=
count
;
}
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
default
:
return
DISP_E_MEMBERNOTFOUND
;
}
...
...
dlls/msi/msiserver.idl
View file @
b7233ba3
...
...
@@ -161,6 +161,8 @@ library WindowsInstaller
void Property(
[in] long Pid,
[in] VARIANT rhs);
[id(DISPID_SUMMARYINFO_PROPERTYCOUNT), propget]
long PropertyCount();
}
typedef enum {
...
...
dlls/msi/msiserver_dispids.h
View file @
b7233ba3
...
...
@@ -54,3 +54,4 @@
#define DISPID_SESSION_SETINSTALLLEVEL 19
#define DISPID_SUMMARYINFO_PROPERTY 1
#define DISPID_SUMMARYINFO_PROPERTYCOUNT 2
dlls/msi/tests/automation.c
View file @
b7233ba3
...
...
@@ -1322,12 +1322,9 @@ static void test_SummaryInfo(IDispatch *pSummaryInfo, const msi_summary_info *in
int
j
;
/* SummaryInfo::PropertyCount */
todo_wine
{
hr
=
SummaryInfo_PropertyCountGet
(
pSummaryInfo
,
&
j
);
ok
(
hr
==
S_OK
,
"SummaryInfo_PropertyCount failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
j
==
num_info
,
"SummaryInfo_PropertyCount returned %d, expected %d
\n
"
,
j
,
num_info
);
}
/* SummaryInfo::Property, get for properties we have set */
for
(
j
=
0
;
j
<
num_info
;
j
++
)
...
...
@@ -1451,13 +1448,10 @@ static void test_SummaryInfo(IDispatch *pSummaryInfo, const msi_summary_info *in
VariantClear
(
&
var
);
/* SummaryInfo::PropertyCount */
todo_wine
{
hr
=
SummaryInfo_PropertyCountGet
(
pSummaryInfo
,
&
j
);
ok
(
hr
==
S_OK
,
"SummaryInfo_PropertyCount failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
j
==
num_info
+
4
,
"SummaryInfo_PropertyCount returned %d, expected %d
\n
"
,
j
,
num_info
);
}
}
}
static
void
test_Database
(
IDispatch
*
pDatabase
,
BOOL
readonly
)
...
...
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