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
127b2741
Commit
127b2741
authored
Aug 27, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Prefer loading native manifests over Wine ones.
parent
f8397ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
actctx.c
dlls/ntdll/actctx.c
+16
-2
No files found.
dlls/ntdll/actctx.c
View file @
127b2741
...
@@ -1801,6 +1801,7 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
...
@@ -1801,6 +1801,7 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
static
const
WCHAR
lookup_fmtW
[]
=
static
const
WCHAR
lookup_fmtW
[]
=
{
'%'
,
's'
,
'_'
,
'%'
,
's'
,
'_'
,
'%'
,
's'
,
'_'
,
'%'
,
'u'
,
'.'
,
'%'
,
'u'
,
'.'
,
'*'
,
'.'
,
'*'
,
'_'
,
{
'%'
,
's'
,
'_'
,
'%'
,
's'
,
'_'
,
'%'
,
's'
,
'_'
,
'%'
,
'u'
,
'.'
,
'%'
,
'u'
,
'.'
,
'*'
,
'.'
,
'*'
,
'_'
,
'%'
,
's'
,
'_'
,
'*'
,
'.'
,
'm'
,
'a'
,
'n'
,
'i'
,
'f'
,
'e'
,
's'
,
't'
,
0
};
'%'
,
's'
,
'_'
,
'*'
,
'.'
,
'm'
,
'a'
,
'n'
,
'i'
,
'f'
,
'e'
,
's'
,
't'
,
0
};
static
const
WCHAR
wine_trailerW
[]
=
{
'd'
,
'e'
,
'a'
,
'd'
,
'b'
,
'e'
,
'e'
,
'f'
,
'.'
,
'm'
,
'a'
,
'n'
,
'i'
,
'f'
,
'e'
,
's'
,
't'
,
0
};
WCHAR
*
lookup
,
*
ret
=
NULL
;
WCHAR
*
lookup
,
*
ret
=
NULL
;
UNICODE_STRING
lookup_us
;
UNICODE_STRING
lookup_us
;
...
@@ -1852,8 +1853,21 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
...
@@ -1852,8 +1853,21 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
tmp
=
strchrW
(
tmp
,
'.'
)
+
1
;
tmp
=
strchrW
(
tmp
,
'.'
)
+
1
;
revision
=
atoiW
(
tmp
);
revision
=
atoiW
(
tmp
);
if
(
build
==
min_build
&&
revision
<
min_revision
)
continue
;
if
(
build
==
min_build
&&
revision
<
min_revision
)
continue
;
ai
->
version
.
build
=
min_build
=
build
;
tmp
=
strchrW
(
tmp
,
'_'
)
+
1
;
ai
->
version
.
revision
=
min_revision
=
revision
;
tmp
=
strchrW
(
tmp
,
'_'
)
+
1
;
if
(
!
strcmpiW
(
tmp
,
wine_trailerW
))
{
/* prefer a non-Wine manifest if we already have one */
/* we'll still load the builtin dll if specified through DllOverrides */
if
(
ret
)
continue
;
}
else
{
min_build
=
build
;
min_revision
=
revision
;
}
ai
->
version
.
build
=
build
;
ai
->
version
.
revision
=
revision
;
RtlFreeHeap
(
GetProcessHeap
(),
0
,
ret
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
ret
);
if
((
ret
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dir_info
->
FileNameLength
+
sizeof
(
WCHAR
)
)))
if
((
ret
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dir_info
->
FileNameLength
+
sizeof
(
WCHAR
)
)))
{
{
...
...
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