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
f8397ef2
Commit
f8397ef2
authored
Aug 27, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use the manifest with the highest matching version number.
parent
2febc9d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
actctx.c
dlls/ntdll/actctx.c
+6
-6
No files found.
dlls/ntdll/actctx.c
View file @
f8397ef2
...
...
@@ -1824,6 +1824,7 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
FileBothDirectoryInformation
,
FALSE
,
&
lookup_us
,
TRUE
);
if
(
io
.
u
.
Status
==
STATUS_SUCCESS
)
{
ULONG
min_build
=
ai
->
version
.
build
,
min_revision
=
ai
->
version
.
revision
;
FILE_BOTH_DIR_INFORMATION
*
dir_info
;
WCHAR
*
tmp
;
ULONG
build
,
revision
;
...
...
@@ -1847,19 +1848,18 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
tmp
=
(
WCHAR
*
)
dir_info
->
FileName
+
(
strchrW
(
lookup
,
'*'
)
-
lookup
);
build
=
atoiW
(
tmp
);
if
(
build
<
ai
->
version
.
build
)
continue
;
if
(
build
<
min_
build
)
continue
;
tmp
=
strchrW
(
tmp
,
'.'
)
+
1
;
revision
=
atoiW
(
tmp
);
if
(
build
==
ai
->
version
.
build
&&
revision
<
ai
->
version
.
revision
)
continue
;
ai
->
version
.
build
=
build
;
ai
->
version
.
revision
=
revision
;
if
(
build
==
min_build
&&
revision
<
min_revision
)
continue
;
ai
->
version
.
build
=
min_build
=
build
;
ai
->
version
.
revision
=
min_revision
=
revision
;
RtlFreeHeap
(
GetProcessHeap
(),
0
,
ret
)
;
if
((
ret
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dir_info
->
FileNameLength
+
sizeof
(
WCHAR
)
)))
{
memcpy
(
ret
,
dir_info
->
FileName
,
dir_info
->
FileNameLength
);
ret
[
dir_info
->
FileNameLength
/
sizeof
(
WCHAR
)]
=
0
;
}
break
;
}
}
else
WARN
(
"no matching file for %s
\n
"
,
debugstr_w
(
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