server: Initialize pe image struct padding to avoid Valgrind warning.
This commit is contained in:
parent
49a157b1f2
commit
c55cce6fcb
3 changed files with 4 additions and 1 deletions
|
@ -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 785
|
||||
#define SERVER_PROTOCOL_VERSION 786
|
||||
|
||||
/* ### protocol_version end ### */
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue