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
8b2d0d3e
Commit
8b2d0d3e
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: suminfo: Return ERROR_UNKNOWN_PROPERTY as native.
parent
b9ea2572
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
15 deletions
+11
-15
suminfo.c
dlls/msi/suminfo.c
+6
-6
suminfo.c
dlls/msi/tests/suminfo.c
+5
-9
No files found.
dlls/msi/suminfo.c
View file @
8b2d0d3e
...
@@ -529,16 +529,16 @@ static UINT get_prop( MSIHANDLE handle, UINT uiProperty, UINT *puiDataType,
...
@@ -529,16 +529,16 @@ static UINT get_prop( MSIHANDLE handle, UINT uiProperty, UINT *puiDataType,
TRACE
(
"%ld %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
TRACE
(
"%ld %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
piValue
,
pftValue
,
str
,
pcchValueBuf
);
piValue
,
pftValue
,
str
,
pcchValueBuf
);
si
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_SUMMARYINFO
);
if
(
!
si
)
return
ERROR_INVALID_HANDLE
;
if
(
uiProperty
>=
MSI_MAX_PROPS
)
if
(
uiProperty
>=
MSI_MAX_PROPS
)
{
{
*
puiDataType
=
VT_EMPTY
;
if
(
puiDataType
)
*
puiDataType
=
VT_EMPTY
;
return
ret
;
return
ERROR_UNKNOWN_PROPERTY
;
}
}
si
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_SUMMARYINFO
);
if
(
!
si
)
return
ERROR_INVALID_HANDLE
;
prop
=
&
si
->
property
[
uiProperty
];
prop
=
&
si
->
property
[
uiProperty
];
if
(
puiDataType
)
if
(
puiDataType
)
...
...
dlls/msi/tests/suminfo.c
View file @
8b2d0d3e
...
@@ -99,15 +99,11 @@ static void test_suminfo(void)
...
@@ -99,15 +99,11 @@ static void test_suminfo(void)
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
0
,
NULL
,
NULL
,
NULL
,
0
,
NULL
);
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
0
,
NULL
,
NULL
,
NULL
,
0
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"getpropcount failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"getpropcount failed
\n
"
);
/* Page faults in wine */
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
-
1
,
NULL
,
NULL
,
NULL
,
0
,
NULL
);
if
(
0
)
ok
(
r
==
ERROR_UNKNOWN_PROPERTY
,
"MsiSummaryInfoGetProperty wrong error
\n
"
);
{
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
-
1
,
NULL
,
NULL
,
NULL
,
0
,
NULL
);
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
PID_SECURITY
+
1
,
NULL
,
NULL
,
NULL
,
0
,
NULL
);
ok
(
r
==
ERROR_UNKNOWN_PROPERTY
,
"MsiSummaryInfoGetProperty wrong error
\n
"
);
ok
(
r
==
ERROR_UNKNOWN_PROPERTY
,
"MsiSummaryInfoGetProperty wrong error
\n
"
);
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
PID_SECURITY
+
1
,
NULL
,
NULL
,
NULL
,
0
,
NULL
);
ok
(
r
==
ERROR_UNKNOWN_PROPERTY
,
"MsiSummaryInfoGetProperty wrong error
\n
"
);
}
type
=
-
1
;
type
=
-
1
;
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
0
,
&
type
,
NULL
,
NULL
,
0
,
NULL
);
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
0
,
&
type
,
NULL
,
NULL
,
0
,
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