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
7386de35
Commit
7386de35
authored
Aug 20, 2015
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Do not fail to relocate an image if the size of relocation block is 0.
parent
3b5107d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
loader.c
dlls/ntdll/loader.c
+4
-2
No files found.
dlls/ntdll/loader.c
View file @
7386de35
...
...
@@ -1680,14 +1680,16 @@ static NTSTATUS perform_relocations( void *module, SIZE_T len )
relocs
=
&
nt
->
OptionalHeader
.
DataDirectory
[
IMAGE_DIRECTORY_ENTRY_BASERELOC
];
if
((
nt
->
FileHeader
.
Characteristics
&
IMAGE_FILE_RELOCS_STRIPPED
)
||
!
relocs
->
VirtualAddress
||
!
relocs
->
Size
)
if
(
nt
->
FileHeader
.
Characteristics
&
IMAGE_FILE_RELOCS_STRIPPED
)
{
WARN
(
"Need to relocate module from %p to %p, but there are no relocation records
\n
"
,
base
,
module
);
return
STATUS_CONFLICTING_ADDRESSES
;
}
if
(
!
relocs
->
Size
)
return
STATUS_SUCCESS
;
if
(
!
relocs
->
VirtualAddress
)
return
STATUS_CONFLICTING_ADDRESSES
;
if
(
nt
->
FileHeader
.
NumberOfSections
>
sizeof
(
protect_old
)
/
sizeof
(
protect_old
[
0
]))
return
STATUS_INVALID_IMAGE_FORMAT
;
...
...
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