Commit c55cce6f authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

server: Initialize pe image struct padding to avoid Valgrind warning.

parent 49a157b1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment