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
8438d211
Commit
8438d211
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
98c703ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
35 deletions
+4
-35
msi.c
dlls/msi/msi.c
+4
-4
msipriv.h
dlls/msi/msipriv.h
+0
-1
registry.c
dlls/msi/registry.c
+0
-30
No files found.
dlls/msi/msi.c
View file @
8438d211
...
...
@@ -733,7 +733,7 @@ static UINT MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
}
if
(
classes
)
MSIREG_Open
LocalSystemProductKey
(
szProduct
,
&
userdata
,
FALSE
);
MSIREG_Open
InstallProps
(
szProduct
,
szLocalSid
,
&
userdata
,
FALSE
);
else
MSIREG_OpenCurrentUserInstallProps
(
szProduct
,
&
userdata
,
FALSE
);
...
...
@@ -1062,7 +1062,7 @@ UINT WINAPI MsiGetProductInfoExW(LPCWSTR szProductCode, LPCWSTR szUserSid,
else
if
(
dwContext
==
MSIINSTALLCONTEXT_MACHINE
)
{
package
=
INSTALLPROPERTY_LOCALPACKAGEW
;
MSIREG_Open
LocalSystemProductKey
(
szProductCode
,
&
props
,
FALSE
);
MSIREG_Open
InstallProps
(
szProductCode
,
szLocalSid
,
&
props
,
FALSE
);
MSIREG_OpenProductKey
(
szProductCode
,
dwContext
,
&
classes
,
FALSE
);
if
(
!
props
&&
!
classes
)
...
...
@@ -1296,7 +1296,7 @@ static BOOL msi_comp_find_package(LPCWSTR prodcode, MSIINSTALLCONTEXT context)
};
if
(
context
==
MSIINSTALLCONTEXT_MACHINE
)
r
=
MSIREG_Open
LocalSystemProductKey
(
prodcode
,
&
hkey
,
FALSE
);
r
=
MSIREG_Open
InstallProps
(
prodcode
,
szLocalSid
,
&
hkey
,
FALSE
);
else
r
=
MSIREG_OpenCurrentUserInstallProps
(
prodcode
,
&
hkey
,
FALSE
);
...
...
@@ -1784,7 +1784,7 @@ static INSTALLSTATE MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
state
=
INSTALLSTATE_ABSENT
;
if
((
MSIREG_Open
LocalSystemProductKey
(
szProduct
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
||
if
((
MSIREG_Open
InstallProps
(
szProduct
,
szLocalSid
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
||
MSIREG_OpenUserDataProductKey
(
szProduct
,
NULL
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
)
&&
msi_reg_get_val_dword
(
hkey
,
wininstaller
,
&
version
)
&&
GetFileAttributesW
(
path
)
!=
INVALID_FILE_ATTRIBUTES
)
...
...
dlls/msi/msipriv.h
View file @
8438d211
...
...
@@ -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_OpenLocalSystemProductKey
(
LPCWSTR
szProductCode
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenLocalSystemComponentKey
(
LPCWSTR
szComponent
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_DeleteUserFeaturesKey
(
LPCWSTR
szProduct
);
extern
UINT
MSIREG_DeleteLocalUserDataComponentKey
(
LPCWSTR
szComponent
);
...
...
dlls/msi/registry.c
View file @
8438d211
...
...
@@ -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_LocalSystemProductCodes_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'
,
'\\'
,
'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'
,
'\\'
,
...
...
@@ -1049,26 +1039,6 @@ UINT MSIREG_DeleteUserUpgradeCodesKey(LPCWSTR szUpgradeCode)
return
RegDeleteTreeW
(
HKEY_CURRENT_USER
,
keypath
);
}
UINT
MSIREG_OpenLocalSystemProductKey
(
LPCWSTR
szProductCode
,
HKEY
*
key
,
BOOL
create
)
{
WCHAR
squished_pc
[
GUID_SIZE
];
WCHAR
keypath
[
0x200
];
TRACE
(
"%s
\n
"
,
debugstr_w
(
szProductCode
));
if
(
!
squash_guid
(
szProductCode
,
squished_pc
))
return
ERROR_FUNCTION_FAILED
;
TRACE
(
"squished (%s)
\n
"
,
debugstr_w
(
squished_pc
));
sprintfW
(
keypath
,
szInstaller_LocalSystemProductCodes_fmt
,
squished_pc
);
if
(
create
)
return
RegCreateKeyW
(
HKEY_LOCAL_MACHINE
,
keypath
,
key
);
return
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
keypath
,
key
);
}
UINT
MSIREG_OpenLocalSystemComponentKey
(
LPCWSTR
szComponent
,
HKEY
*
key
,
BOOL
create
)
{
WCHAR
squished_pc
[
GUID_SIZE
];
...
...
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