Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
381b915b
Commit
381b915b
authored
Jun 29, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Return ERROR_BAD_CONFIGURATION if the SourceList key does not exist.
parent
3e56d78f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
source.c
dlls/msi/source.c
+7
-3
source.c
dlls/msi/tests/source.c
+1
-4
No files found.
dlls/msi/source.c
View file @
381b915b
...
...
@@ -63,12 +63,16 @@ static UINT OpenSourceKey(LPCWSTR szProduct, HKEY* key, BOOL user, BOOL create)
rc
=
MSIREG_OpenProductsKey
(
szProduct
,
&
rootkey
,
create
);
if
(
rc
)
return
rc
;
return
ERROR_UNKNOWN_PRODUCT
;
if
(
create
)
rc
=
RegCreateKeyW
(
rootkey
,
szSourceList
,
key
);
else
rc
=
RegOpenKeyW
(
rootkey
,
szSourceList
,
key
);
{
rc
=
RegOpenKeyW
(
rootkey
,
szSourceList
,
key
);
if
(
rc
!=
ERROR_SUCCESS
)
rc
=
ERROR_BAD_CONFIGURATION
;
}
return
rc
;
}
...
...
@@ -250,7 +254,7 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
rc
=
OpenSourceKey
(
szProduct
,
&
sourcekey
,
TRUE
,
FALSE
);
if
(
rc
!=
ERROR_SUCCESS
)
return
ERROR_UNKNOWN_PRODUCT
;
return
rc
;
if
(
strcmpW
(
szProperty
,
INSTALLPROPERTY_MEDIAPACKAGEPATHW
)
==
0
)
{
...
...
dlls/msi/tests/source.c
View file @
381b915b
...
...
@@ -199,10 +199,7 @@ static void test_MsiSourceListGetInfo(void)
/* user product key exists */
r
=
MsiSourceListGetInfoA
(
prodcode
,
usersid
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
NULL
,
&
size
);
todo_wine
{
ok
(
r
==
ERROR_BAD_CONFIGURATION
,
"Expected ERROR_BAD_CONFIGURATION, got %d
\n
"
,
r
);
}
ok
(
r
==
ERROR_BAD_CONFIGURATION
,
"Expected ERROR_BAD_CONFIGURATION, got %d
\n
"
,
r
);
res
=
RegCreateKeyA
(
userkey
,
"SourceList"
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
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