Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
70732e27
Commit
70732e27
authored
Apr 16, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use KEY_WOW64_* flags in ACTION_Register/UnregisterClassInfo.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e9ad430a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
classes.c
dlls/msi/classes.c
+12
-13
msipriv.h
dlls/msi/msipriv.h
+0
-1
No files found.
dlls/msi/classes.c
View file @
70732e27
...
...
@@ -747,7 +747,7 @@ static UINT register_appid(const MSIAPPID *appid, LPCWSTR app )
UINT
ACTION_RegisterClassInfo
(
MSIPACKAGE
*
package
)
{
static
const
WCHAR
szFileType_fmt
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
,
'T'
,
'y'
,
'p'
,
'e'
,
'\\'
,
'%'
,
's'
,
'\\'
,
'%'
,
'i'
,
0
};
const
WCHAR
*
keypath
;
REGSAM
access
=
KEY_ALL_ACCESS
;
MSIRECORD
*
uirow
;
HKEY
hkey
,
hkey2
,
hkey3
;
MSICLASS
*
cls
;
...
...
@@ -760,12 +760,12 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
if
(
is_64bit
&&
package
->
platform
==
PLATFORM_INTEL
)
keypath
=
szWow6432NodeCLSID
;
if
(
package
->
platform
==
PLATFORM_INTEL
)
access
|=
KEY_WOW64_32KEY
;
else
keypath
=
szCLSID
;
access
|=
KEY_WOW64_64KEY
;
if
(
RegCreateKey
W
(
HKEY_CLASSES_ROOT
,
keypath
,
&
hkey
)
!=
ERROR_SUCCESS
)
if
(
RegCreateKey
ExW
(
HKEY_CLASSES_ROOT
,
szCLSID
,
0
,
NULL
,
0
,
access
,
NULL
,
&
hkey
,
NULL
)
)
return
ERROR_FUNCTION_FAILED
;
LIST_FOR_EACH_ENTRY
(
cls
,
&
package
->
classes
,
MSICLASS
,
entry
)
...
...
@@ -873,7 +873,6 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
if
(
cls
->
DefInprocHandler32
)
msi_reg_set_subkey_val
(
hkey2
,
szInprocHandler32
,
NULL
,
cls
->
DefInprocHandler32
);
RegCloseKey
(
hkey2
);
/* if there is a FileTypeMask, register the FileType */
...
...
@@ -902,7 +901,7 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
index
++
;
}
}
uirow
=
MSI_CreateRecord
(
1
);
MSI_RecordSetStringW
(
uirow
,
1
,
cls
->
clsid
);
MSI_ProcessMessage
(
package
,
INSTALLMESSAGE_ACTIONDATA
,
uirow
);
...
...
@@ -915,7 +914,7 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
UINT
ACTION_UnregisterClassInfo
(
MSIPACKAGE
*
package
)
{
static
const
WCHAR
szFileType
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
,
'T'
,
'y'
,
'p'
,
'e'
,
'\\'
,
0
};
const
WCHAR
*
keypath
;
REGSAM
access
=
KEY_ALL_ACCESS
;
MSIRECORD
*
uirow
;
MSICLASS
*
cls
;
HKEY
hkey
,
hkey2
;
...
...
@@ -928,13 +927,13 @@ UINT ACTION_UnregisterClassInfo( MSIPACKAGE *package )
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
if
(
is_64bit
&&
package
->
platform
==
PLATFORM_INTEL
)
keypath
=
szWow6432NodeCLSID
;
if
(
package
->
platform
==
PLATFORM_INTEL
)
access
|=
KEY_WOW64_32KEY
;
else
keypath
=
szCLSID
;
access
|=
KEY_WOW64_64KEY
;
if
(
Reg
OpenKeyW
(
HKEY_CLASSES_ROOT
,
keypath
,
&
hkey
)
!=
ERROR_SUCCESS
)
return
ERROR_
SUCCESS
;
if
(
Reg
CreateKeyExW
(
HKEY_CLASSES_ROOT
,
szCLSID
,
0
,
NULL
,
0
,
access
,
NULL
,
&
hkey
,
NULL
)
)
return
ERROR_
FUNCTION_FAILED
;
LIST_FOR_EACH_ENTRY
(
cls
,
&
package
->
classes
,
MSICLASS
,
entry
)
{
...
...
dlls/msi/msipriv.h
View file @
70732e27
...
...
@@ -1207,7 +1207,6 @@ static const WCHAR szX64[] = {'x','6','4',0};
static
const
WCHAR
szAMD64
[]
=
{
'A'
,
'M'
,
'D'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
szARM
[]
=
{
'A'
,
'r'
,
'm'
,
0
};
static
const
WCHAR
szARM64
[]
=
{
'A'
,
'r'
,
'm'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
szWow6432NodeCLSID
[]
=
{
'W'
,
'o'
,
'w'
,
'6'
,
'4'
,
'3'
,
'2'
,
'N'
,
'o'
,
'd'
,
'e'
,
'\\'
,
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
szStreams
[]
=
{
'_'
,
'S'
,
't'
,
'r'
,
'e'
,
'a'
,
'm'
,
's'
,
0
};
static
const
WCHAR
szStorages
[]
=
{
'_'
,
'S'
,
't'
,
'o'
,
'r'
,
'a'
,
'g'
,
'e'
,
's'
,
0
};
static
const
WCHAR
szMsiPublishAssemblies
[]
=
{
'M'
,
's'
,
'i'
,
'P'
,
'u'
,
'b'
,
'l'
,
'i'
,
's'
,
'h'
,
'A'
,
's'
,
's'
,
'e'
,
'm'
,
'b'
,
'l'
,
'i'
,
'e'
,
's'
,
0
};
...
...
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