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
fdda480d
Commit
fdda480d
authored
Jan 28, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix writing resource section as a last section in UpdateResource().
parent
8f2b5653
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
resource.c
dlls/kernel32/resource.c
+2
-1
No files found.
dlls/kernel32/resource.c
View file @
fdda480d
...
@@ -1545,7 +1545,8 @@ static BOOL write_raw_resources( QUEUEDUPDATES *updates )
...
@@ -1545,7 +1545,8 @@ static BOOL write_raw_resources( QUEUEDUPDATES *updates )
int
delta
=
section_size
-
(
sec
->
SizeOfRawData
+
(
-
sec
->
SizeOfRawData
)
%
PeFileAlignment
);
int
delta
=
section_size
-
(
sec
->
SizeOfRawData
+
(
-
sec
->
SizeOfRawData
)
%
PeFileAlignment
);
int
rva_delta
=
virtual_section_size
-
int
rva_delta
=
virtual_section_size
-
(
sec
->
Misc
.
VirtualSize
+
(
-
sec
->
Misc
.
VirtualSize
)
%
PeSectionAlignment
);
(
sec
->
Misc
.
VirtualSize
+
(
-
sec
->
Misc
.
VirtualSize
)
%
PeSectionAlignment
);
BOOL
rsrc_is_last
=
sec
->
PointerToRawData
+
sec
->
SizeOfRawData
==
old_size
;
/* when new section is added it could end past current mapping size */
BOOL
rsrc_is_last
=
sec
->
PointerToRawData
+
sec
->
SizeOfRawData
>=
old_size
;
/* align .rsrc size when possible */
/* align .rsrc size when possible */
DWORD
mapping_size
=
rsrc_is_last
?
sec
->
PointerToRawData
+
section_size
:
old_size
+
delta
;
DWORD
mapping_size
=
rsrc_is_last
?
sec
->
PointerToRawData
+
section_size
:
old_size
+
delta
;
...
...
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