Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
baa6efa5
Commit
baa6efa5
authored
Jul 15, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: MsiGetComponentPath cannot return INSTALLSTATE_ADVERTISED.
parent
df10b7d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
31 deletions
+2
-31
msi.c
dlls/msi/msi.c
+2
-31
No files found.
dlls/msi/msi.c
View file @
baa6efa5
...
...
@@ -986,10 +986,8 @@ INSTALLSTATE WINAPI MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
{
WCHAR
squished_pc
[
GUID_SIZE
],
squished_comp
[
GUID_SIZE
];
UINT
rc
;
INSTALLSTATE
rrc
=
INSTALLSTATE_UNKNOWN
;
HKEY
hkey
=
0
;
LPWSTR
path
=
NULL
;
DWORD
sz
,
type
;
TRACE
(
"%s %s %p %p
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szComponent
),
lpPathBuf
,
pcchBuf
);
...
...
@@ -1013,24 +1011,7 @@ INSTALLSTATE WINAPI MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
if
(
rc
!=
ERROR_SUCCESS
)
return
INSTALLSTATE_UNKNOWN
;
sz
=
0
;
type
=
0
;
rc
=
RegQueryValueExW
(
hkey
,
squished_pc
,
NULL
,
&
type
,
NULL
,
&
sz
);
if
(
rc
==
ERROR_SUCCESS
&&
type
==
REG_SZ
)
{
sz
+=
sizeof
(
WCHAR
);
path
=
msi_alloc
(
sz
);
if
(
path
)
{
path
[
0
]
=
0
;
rc
=
RegQueryValueExW
(
hkey
,
squished_pc
,
NULL
,
NULL
,
(
LPVOID
)
path
,
&
sz
);
if
(
rc
!=
ERROR_SUCCESS
)
{
msi_free
(
path
);
path
=
NULL
;
}
}
}
path
=
msi_reg_get_val_str
(
hkey
,
squished_pc
);
RegCloseKey
(
hkey
);
TRACE
(
"found path of (%s:%s)(%s)
\n
"
,
debugstr_w
(
szComponent
),
...
...
@@ -1040,22 +1021,12 @@ INSTALLSTATE WINAPI MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
return
INSTALLSTATE_UNKNOWN
;
if
(
path
[
0
]
==
'0'
)
{
FIXME
(
"Registry entry.. check entry
\n
"
);
rrc
=
INSTALLSTATE_LOCAL
;
}
else
{
if
(
GetFileAttributesW
(
path
)
!=
INVALID_FILE_ATTRIBUTES
)
rrc
=
INSTALLSTATE_LOCAL
;
else
rrc
=
INSTALLSTATE_ABSENT
;
}
msi_strcpy_to_awstring
(
path
,
lpPathBuf
,
pcchBuf
);
msi_free
(
path
);
return
rrc
;
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