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
d800a082
Commit
d800a082
authored
May 17, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Return appropriate values for empty MsiProductInfo parameters.
parent
68bfb397
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
msi.c
dlls/msi/msi.c
+5
-1
msi.c
dlls/msi/tests/msi.c
+2
-2
No files found.
dlls/msi/msi.c
View file @
d800a082
...
...
@@ -444,7 +444,7 @@ static UINT WINAPI MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
* FIXME: Values seem scattered/duplicated in the registry. Is there a system?
*/
if
((
szValue
->
str
.
w
&&
!
pcchValueBuf
)
||
!
szProduct
||
!
szAttribute
)
if
((
szValue
->
str
.
w
&&
!
pcchValueBuf
)
||
!
szProduct
||
!
sz
Product
[
0
]
||
!
sz
Attribute
)
return
ERROR_INVALID_PARAMETER
;
/* check for special properties */
...
...
@@ -505,6 +505,10 @@ static UINT WINAPI MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
RegCloseKey
(
hkey
);
}
else
if
(
!
szAttribute
[
0
])
{
return
ERROR_UNKNOWN_PROPERTY
;
}
else
{
static
const
WCHAR
szDisplayVersion
[]
=
{
...
...
dlls/msi/tests/msi.c
View file @
d800a082
...
...
@@ -131,7 +131,7 @@ static void test_null(void)
ok
(
r
==
ERROR_SUCCESS
,
"wrong error %d
\n
"
,
r
);
r
=
MsiGetProductInfoA
(
""
,
""
,
NULL
,
NULL
);
todo_wine
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong error %d
\n
"
,
r
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong error %d
\n
"
,
r
);
if
(
lpData
)
{
...
...
@@ -157,7 +157,7 @@ static void test_null(void)
ok
(
r
==
ERROR_SUCCESS
,
"wrong error %d
\n
"
,
r
);
r
=
MsiGetProductInfoA
(
"{F1C3AF50-8B56-4A69-A00C-00773FE42F30}"
,
""
,
NULL
,
NULL
);
todo_wine
ok
(
r
==
ERROR_UNKNOWN_PROPERTY
,
"wrong error %d
\n
"
,
r
);
ok
(
r
==
ERROR_UNKNOWN_PROPERTY
,
"wrong error %d
\n
"
,
r
);
r
=
RegCloseKey
(
hkey
);
ok
(
r
==
ERROR_SUCCESS
,
"wrong error %d
\n
"
,
r
);
...
...
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