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
bdf7da9b
Commit
bdf7da9b
authored
Dec 09, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Dec 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove a duplicated function.
parent
8438d211
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
36 deletions
+5
-36
msi.c
dlls/msi/msi.c
+4
-4
msipriv.h
dlls/msi/msipriv.h
+0
-1
registry.c
dlls/msi/registry.c
+1
-31
No files found.
dlls/msi/msi.c
View file @
bdf7da9b
...
...
@@ -619,7 +619,7 @@ UINT WINAPI MsiGetProductCodeW(LPCWSTR szComponent, LPWSTR szBuffer)
return
ERROR_INVALID_PARAMETER
;
if
(
MSIREG_OpenUserDataComponentKey
(
szComponent
,
NULL
,
&
compkey
,
FALSE
)
!=
ERROR_SUCCESS
&&
MSIREG_Open
LocalSystemComponentKey
(
szComponent
,
&
compkey
,
FALSE
)
!=
ERROR_SUCCESS
)
MSIREG_Open
UserDataComponentKey
(
szComponent
,
szLocalSid
,
&
compkey
,
FALSE
)
!=
ERROR_SUCCESS
)
{
return
ERROR_UNKNOWN_COMPONENT
;
}
...
...
@@ -1324,7 +1324,7 @@ static BOOL msi_comp_find_prodcode(LPWSTR squished_pc,
UINT
r
;
if
(
context
==
MSIINSTALLCONTEXT_MACHINE
)
r
=
MSIREG_Open
LocalSystemComponentKey
(
comp
,
&
hkey
,
FALSE
);
r
=
MSIREG_Open
UserDataComponentKey
(
comp
,
szLocalSid
,
&
hkey
,
FALSE
);
else
r
=
MSIREG_OpenUserDataComponentKey
(
comp
,
NULL
,
&
hkey
,
FALSE
);
...
...
@@ -1776,7 +1776,7 @@ static INSTALLSTATE MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
state
=
INSTALLSTATE_UNKNOWN
;
if
(
MSIREG_Open
LocalSystemComponentKey
(
szComponent
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
||
if
(
MSIREG_Open
UserDataComponentKey
(
szComponent
,
szLocalSid
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
||
MSIREG_OpenUserDataComponentKey
(
szComponent
,
NULL
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
)
{
path
=
msi_reg_get_val_str
(
hkey
,
squished_pc
);
...
...
@@ -1802,7 +1802,7 @@ static INSTALLSTATE MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
{
RegCloseKey
(
hkey
);
if
(
MSIREG_Open
LocalSystemComponentKey
(
szComponent
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
||
if
(
MSIREG_Open
UserDataComponentKey
(
szComponent
,
szLocalSid
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
||
MSIREG_OpenUserDataComponentKey
(
szComponent
,
NULL
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
)
{
msi_free
(
path
);
...
...
dlls/msi/msipriv.h
View file @
bdf7da9b
...
...
@@ -786,7 +786,6 @@ extern UINT MSIREG_OpenUserUpgradeCodesKey(LPCWSTR szProduct, HKEY* key, BOOL cr
extern
UINT
MSIREG_DeleteProductKey
(
LPCWSTR
szProduct
);
extern
UINT
MSIREG_DeleteUserProductKey
(
LPCWSTR
szProduct
);
extern
UINT
MSIREG_DeleteUserDataProductKey
(
LPCWSTR
szProduct
);
extern
UINT
MSIREG_OpenLocalSystemComponentKey
(
LPCWSTR
szComponent
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_DeleteUserFeaturesKey
(
LPCWSTR
szProduct
);
extern
UINT
MSIREG_DeleteLocalUserDataComponentKey
(
LPCWSTR
szComponent
);
extern
UINT
MSIREG_DeleteUserDataComponentKey
(
LPCWSTR
szComponent
);
...
...
dlls/msi/registry.c
View file @
bdf7da9b
...
...
@@ -187,16 +187,6 @@ static const WCHAR szInstallProperties_fmt[] = {
'%'
,
's'
,
'\\'
,
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
's'
,
'\\'
,
'%'
,
's'
,
'\\'
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
szInstaller_LocalSystemComponent_fmt
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
'e'
,
'r'
,
'\\'
,
'U'
,
's'
,
'e'
,
'r'
,
'D'
,
'a'
,
't'
,
'a'
,
'\\'
,
'S'
,
'-'
,
'1'
,
'-'
,
'5'
,
'-'
,
'1'
,
'8'
,
'\\'
,
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
static
const
WCHAR
szInstaller_LocalClassesProd_fmt
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
'e'
,
's'
,
'\\'
,
...
...
@@ -1039,26 +1029,6 @@ UINT MSIREG_DeleteUserUpgradeCodesKey(LPCWSTR szUpgradeCode)
return
RegDeleteTreeW
(
HKEY_CURRENT_USER
,
keypath
);
}
UINT
MSIREG_OpenLocalSystemComponentKey
(
LPCWSTR
szComponent
,
HKEY
*
key
,
BOOL
create
)
{
WCHAR
squished_pc
[
GUID_SIZE
];
WCHAR
keypath
[
0x200
];
TRACE
(
"%s
\n
"
,
debugstr_w
(
szComponent
));
if
(
!
squash_guid
(
szComponent
,
squished_pc
))
return
ERROR_FUNCTION_FAILED
;
TRACE
(
"squished (%s)
\n
"
,
debugstr_w
(
squished_pc
));
sprintfW
(
keypath
,
szInstaller_LocalSystemComponent_fmt
,
squished_pc
);
if
(
create
)
return
RegCreateKeyW
(
HKEY_LOCAL_MACHINE
,
keypath
,
key
);
return
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
keypath
,
key
);
}
UINT
MSIREG_DeleteLocalClassesProductKey
(
LPCWSTR
szProductCode
)
{
WCHAR
squished_pc
[
GUID_SIZE
];
...
...
@@ -1386,7 +1356,7 @@ UINT WINAPI MsiEnumClientsW(LPCWSTR szComponent, DWORD index, LPWSTR szProduct)
return
ERROR_INVALID_PARAMETER
;
if
(
MSIREG_OpenUserDataComponentKey
(
szComponent
,
NULL
,
&
hkeyComp
,
FALSE
)
!=
ERROR_SUCCESS
&&
MSIREG_Open
LocalSystemComponentKey
(
szComponent
,
&
hkeyComp
,
FALSE
)
!=
ERROR_SUCCESS
)
MSIREG_Open
UserDataComponentKey
(
szComponent
,
szLocalSid
,
&
hkeyComp
,
FALSE
)
!=
ERROR_SUCCESS
)
return
ERROR_UNKNOWN_COMPONENT
;
/* see if there are any products at all */
...
...
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