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
c55cce6f
Commit
c55cce6f
authored
Nov 16, 2023
by
Fabian Maurer
Committed by
Alexandre Julliard
Dec 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Initialize pe image struct padding to avoid Valgrind warning.
parent
49a157b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
server_protocol.h
include/wine/server_protocol.h
+2
-1
mapping.c
server/mapping.c
+1
-0
protocol.def
server/protocol.def
+1
-0
No files found.
include/wine/server_protocol.h
View file @
c55cce6f
...
...
@@ -844,6 +844,7 @@ typedef struct
unsigned
char
contains_code
:
1
;
unsigned
char
wine_builtin
:
1
;
unsigned
char
wine_fakedll
:
1
;
unsigned
char
padding
:
5
;
unsigned
char
image_flags
;
unsigned
int
loader_flags
;
unsigned
int
header_size
;
...
...
@@ -6506,7 +6507,7 @@ union generic_reply
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 78
5
#define SERVER_PROTOCOL_VERSION 78
6
/* ### protocol_version end ### */
...
...
server/mapping.c
View file @
c55cce6f
...
...
@@ -842,6 +842,7 @@ static unsigned int get_image_params( struct mapping *mapping, file_pos_t file_s
return
STATUS_INVALID_IMAGE_FORMAT
;
}
mapping
->
image
.
padding
=
0
;
mapping
->
image
.
map_addr
=
get_fd_map_address
(
mapping
->
fd
);
mapping
->
image
.
image_charact
=
nt
.
FileHeader
.
Characteristics
;
mapping
->
image
.
machine
=
nt
.
FileHeader
.
Machine
;
...
...
server/protocol.def
View file @
c55cce6f
...
...
@@ -860,6 +860,7 @@ typedef struct
unsigned char contains_code : 1;
unsigned char wine_builtin : 1;
unsigned char wine_fakedll : 1;
unsigned char padding : 5;
unsigned char image_flags;
unsigned int loader_flags;
unsigned int header_size;
...
...
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