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
ad6b7cd4
Commit
ad6b7cd4
authored
Dec 02, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Clear last error on success in MsiQueryFeatureState and MsiQueryProductState.
parent
d2055e6e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
msi.c
dlls/msi/msi.c
+7
-0
msi.c
dlls/msi/tests/msi.c
+0
-0
No files found.
dlls/msi/msi.c
View file @
ad6b7cd4
...
...
@@ -1980,6 +1980,11 @@ INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR szProduct)
if
(
lstrlenW
(
szProduct
)
!=
GUID_SIZE
-
1
)
return
INSTALLSTATE_INVALIDARG
;
if
(
szProduct
[
0
]
!=
'{'
||
szProduct
[
37
]
!=
'}'
)
return
INSTALLSTATE_UNKNOWN
;
SetLastError
(
ERROR_SUCCESS
);
if
(
MSIREG_OpenProductKey
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
&
prodkey
,
FALSE
)
!=
ERROR_SUCCESS
&&
MSIREG_OpenProductKey
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
...
...
@@ -2629,6 +2634,8 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
if
(
!
squash_guid
(
szProduct
,
squishProduct
))
return
INSTALLSTATE_INVALIDARG
;
SetLastError
(
ERROR_SUCCESS
);
if
(
MSIREG_OpenFeaturesKey
(
szProduct
,
MSIINSTALLCONTEXT_USERMANAGED
,
&
hkey
,
FALSE
)
!=
ERROR_SUCCESS
&&
MSIREG_OpenFeaturesKey
(
szProduct
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
...
...
dlls/msi/tests/msi.c
View file @
ad6b7cd4
This diff is collapsed.
Click to expand it.
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