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
43a680a1
Commit
43a680a1
authored
Oct 13, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Register class ids from 32-bit packages under Wow6432Node on 64-bit.
parent
e8723a5d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
classes.c
dlls/msi/classes.c
+16
-2
msipriv.h
dlls/msi/msipriv.h
+3
-0
package.c
dlls/msi/package.c
+0
-1
registry.c
dlls/msi/registry.c
+0
-2
No files found.
dlls/msi/classes.c
View file @
43a680a1
...
...
@@ -804,12 +804,19 @@ 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
;
MSIRECORD
*
uirow
;
HKEY
hkey
,
hkey2
,
hkey3
;
MSICLASS
*
cls
;
load_classes_and_such
(
package
);
if
(
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
szCLSID
,
&
hkey
)
!=
ERROR_SUCCESS
)
if
(
is_64bit
&&
package
->
platform
==
PLATFORM_INTEL
)
keypath
=
szWow6432NodeCLSID
;
else
keypath
=
szCLSID
;
if
(
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
keypath
,
&
hkey
)
!=
ERROR_SUCCESS
)
return
ERROR_FUNCTION_FAILED
;
LIST_FOR_EACH_ENTRY
(
cls
,
&
package
->
classes
,
MSICLASS
,
entry
)
...
...
@@ -963,12 +970,19 @@ 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
;
MSIRECORD
*
uirow
;
MSICLASS
*
cls
;
HKEY
hkey
,
hkey2
;
load_classes_and_such
(
package
);
if
(
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
szCLSID
,
&
hkey
)
!=
ERROR_SUCCESS
)
if
(
is_64bit
&&
package
->
platform
==
PLATFORM_INTEL
)
keypath
=
szWow6432NodeCLSID
;
else
keypath
=
szCLSID
;
if
(
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
keypath
,
&
hkey
)
!=
ERROR_SUCCESS
)
return
ERROR_SUCCESS
;
LIST_FOR_EACH_ENTRY
(
cls
,
&
package
->
classes
,
MSICLASS
,
entry
)
...
...
dlls/msi/msipriv.h
View file @
43a680a1
...
...
@@ -37,6 +37,8 @@
#include "wine/list.h"
#include "wine/debug.h"
static
const
BOOL
is_64bit
=
sizeof
(
void
*
)
>
sizeof
(
int
);
#define MSI_DATASIZEMASK 0x00ff
#define MSITYPE_VALID 0x0100
#define MSITYPE_LOCALIZABLE 0x200
...
...
@@ -1147,6 +1149,7 @@ static const WCHAR szAdminUser[] = {'A','d','m','i','n','U','s','e','r',0};
static
const
WCHAR
szIntel
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'l'
,
0
};
static
const
WCHAR
szIntel64
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'l'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
szX64
[]
=
{
'x'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
szWow6432NodeCLSID
[]
=
{
'W'
,
'o'
,
'w'
,
'6'
,
'4'
,
'3'
,
'2'
,
'N'
,
'o'
,
'd'
,
'e'
,
'\\'
,
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
/* memory allocation macro functions */
static
void
*
msi_alloc
(
size_t
len
)
__WINE_ALLOC_SIZE
(
1
);
...
...
dlls/msi/package.c
View file @
43a680a1
...
...
@@ -1350,7 +1350,6 @@ static UINT msi_parse_summary( MSISUMMARYINFO *si, MSIPACKAGE *package )
static
UINT
validate_package
(
MSIPACKAGE
*
package
)
{
static
const
BOOL
is_64bit
=
sizeof
(
void
*
)
>
sizeof
(
int
);
BOOL
is_wow64
;
UINT
i
;
...
...
dlls/msi/registry.c
View file @
43a680a1
...
...
@@ -40,8 +40,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
static
const
BOOL
is_64bit
=
sizeof
(
void
*
)
>
sizeof
(
int
);
/*
* This module will be all the helper functions for registry access by the
* installer bits.
...
...
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