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
8bce656f
Commit
8bce656f
authored
Jul 21, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Components with INSTALLSTATE_NOTUSED are considered present.
parent
a36d06c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
msi.c
dlls/msi/msi.c
+15
-9
No files found.
dlls/msi/msi.c
View file @
8bce656f
...
...
@@ -1124,6 +1124,7 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
UINT
rc
;
HKEY
hkey
;
INSTALLSTATE
r
;
BOOL
missing
=
FALSE
;
TRACE
(
"%s %s
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szFeature
));
...
...
@@ -1166,8 +1167,7 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
return
INSTALLSTATE_UNKNOWN
;
}
r
=
INSTALLSTATE_LOCAL
;
for
(
p
=
components
;
(
*
p
!=
2
)
&&
(
lstrlenW
(
p
)
>
20
);
p
+=
20
)
for
(
p
=
components
;
*
p
!=
2
;
p
+=
20
)
{
if
(
!
decode_base85_guid
(
p
,
&
guid
))
{
...
...
@@ -1176,19 +1176,25 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
}
StringFromGUID2
(
&
guid
,
comp
,
GUID_SIZE
);
r
=
MsiGetComponentPathW
(
szProduct
,
comp
,
NULL
,
0
);
if
(
r
!=
INSTALLSTATE_LOCAL
&&
r
!=
INSTALLSTATE_SOURCE
)
{
TRACE
(
"component %s state %d
\n
"
,
debugstr_guid
(
&
guid
),
r
);
r
=
INSTALLSTATE_ADVERTISED
;
switch
(
r
)
{
case
INSTALLSTATE_NOTUSED
:
case
INSTALLSTATE_LOCAL
:
case
INSTALLSTATE_SOURCE
:
break
;
default:
missing
=
TRUE
;
}
}
if
(
r
==
INSTALLSTATE_LOCAL
&&
*
p
!=
2
)
ERR
(
"%s -> %s
\n
"
,
debugstr_w
(
szFeature
),
debugstr_w
(
components
));
TRACE
(
"%s %s -> %d
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szFeature
),
r
);
msi_free
(
components
);
return
r
;
if
(
missing
)
return
INSTALLSTATE_ADVERTISED
;
return
INSTALLSTATE_LOCAL
;
}
/******************************************************************
...
...
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