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
6abf99b4
Commit
6abf99b4
authored
Feb 12, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use the current platform as processorArchitecture instead of a wildcard.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d0727dec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
actctx.c
dlls/ntdll/actctx.c
+16
-3
No files found.
dlls/ntdll/actctx.c
View file @
6abf99b4
...
...
@@ -570,6 +570,18 @@ struct actctx_loader
static
const
xmlstr_t
empty_xmlstr
;
#ifdef __i386__
static
const
WCHAR
current_archW
[]
=
{
'x'
,
'8'
,
'6'
,
0
};
#elif defined __x86_64__
static
const
WCHAR
current_archW
[]
=
{
'a'
,
'm'
,
'd'
,
'6'
,
'4'
,
0
};
#elif defined __arm__
static
const
WCHAR
current_archW
[]
=
{
'a'
,
'r'
,
'm'
,
0
};
#elif defined __aarch64__
static
const
WCHAR
current_archW
[]
=
{
'a'
,
'r'
,
'm'
,
'6'
,
'4'
,
0
};
#else
static
const
WCHAR
current_archW
[]
=
{
'n'
,
'o'
,
'n'
,
'e'
,
0
};
#endif
static
const
WCHAR
asmv1W
[]
=
{
'u'
,
'r'
,
'n'
,
':'
,
's'
,
'c'
,
'h'
,
'e'
,
'm'
,
'a'
,
's'
,
'-'
,
'm'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'-'
,
'c'
,
'o'
,
'm'
,
':'
,
'a'
,
's'
,
'm'
,
'.'
,
'v'
,
'1'
,
0
};
static
const
WCHAR
asmv2W
[]
=
{
'u'
,
'r'
,
'n'
,
':'
,
's'
,
'c'
,
'h'
,
'e'
,
'm'
,
'a'
,
's'
,
'-'
,
'm'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'-'
,
'c'
,
'o'
,
'm'
,
':'
,
'a'
,
's'
,
'm'
,
'.'
,
'v'
,
'2'
,
0
};
static
const
WCHAR
asmv3W
[]
=
{
'u'
,
'r'
,
'n'
,
':'
,
's'
,
'c'
,
'h'
,
'e'
,
'm'
,
'a'
,
's'
,
'-'
,
'm'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'-'
,
'c'
,
'o'
,
'm'
,
':'
,
'a'
,
's'
,
'm'
,
'.'
,
'v'
,
'3'
,
0
};
...
...
@@ -2197,6 +2209,7 @@ static void parse_dependent_assembly_elem( xmlbuf_t *xmlbuf, struct actctx_loade
{
parse_assembly_identity_elem
(
xmlbuf
,
acl
->
actctx
,
&
ai
,
&
elem
);
/* store the newly found identity for later loading */
if
(
ai
.
arch
&&
!
strcmpW
(
ai
.
arch
,
wildcardW
))
ai
.
arch
=
strdupW
(
current_archW
);
TRACE
(
"adding name=%s version=%s arch=%s
\n
"
,
debugstr_w
(
ai
.
name
),
debugstr_version
(
&
ai
.
version
),
debugstr_w
(
ai
.
arch
)
);
if
(
!
add_dependent_assembly_id
(
acl
,
&
ai
))
set_error
(
xmlbuf
);
...
...
@@ -3086,13 +3099,13 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
unsigned
int
data_pos
=
0
,
data_len
;
char
buffer
[
8192
];
if
(
!
lang
||
!
strcmpiW
(
lang
,
neutralW
))
lang
=
wildcardW
;
if
(
!
(
lookup
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
(
strlenW
(
ai
->
arch
)
+
strlenW
(
ai
->
name
)
+
strlenW
(
ai
->
public_key
)
+
20
)
*
sizeof
(
WCHAR
)
+
strlenW
(
ai
->
public_key
)
+
strlenW
(
lang
)
+
20
)
*
sizeof
(
WCHAR
)
+
sizeof
(
lookup_fmtW
)
)))
return
NULL
;
if
(
!
lang
||
!
strcmpiW
(
lang
,
neutralW
))
lang
=
wildcardW
;
sprintfW
(
lookup
,
lookup_fmtW
,
ai
->
arch
,
ai
->
name
,
ai
->
public_key
,
ai
->
version
.
major
,
ai
->
version
.
minor
,
lang
);
RtlInitUnicodeString
(
&
lookup_us
,
lookup
);
...
...
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