Commit dd318b13 authored by Jefferson Carpenter's avatar Jefferson Carpenter Committed by Alexandre Julliard

server: Add __pad member to pe_image_info_t and zero it.

parent 911e9dad
...@@ -714,6 +714,7 @@ typedef struct ...@@ -714,6 +714,7 @@ typedef struct
unsigned int file_size; unsigned int file_size;
unsigned int checksum; unsigned int checksum;
cpu_type_t cpu; cpu_type_t cpu;
int __pad;
} pe_image_info_t; } pe_image_info_t;
#define IMAGE_FLAGS_ComPlusNativeReady 0x01 #define IMAGE_FLAGS_ComPlusNativeReady 0x01
#define IMAGE_FLAGS_ComPlusILOnly 0x02 #define IMAGE_FLAGS_ComPlusILOnly 0x02
......
...@@ -703,6 +703,7 @@ static unsigned int get_image_params( struct mapping *mapping, file_pos_t file_s ...@@ -703,6 +703,7 @@ static unsigned int get_image_params( struct mapping *mapping, file_pos_t file_s
mapping->image.gp = 0; /* FIXME */ mapping->image.gp = 0; /* FIXME */
mapping->image.file_size = file_size; mapping->image.file_size = file_size;
mapping->image.loader_flags = clr_va && clr_size; mapping->image.loader_flags = clr_va && clr_size;
mapping->image.__pad = 0;
if (mz_size == sizeof(mz) && !memcmp( mz.buffer, builtin_signature, sizeof(builtin_signature) )) if (mz_size == sizeof(mz) && !memcmp( mz.buffer, builtin_signature, sizeof(builtin_signature) ))
mapping->image.image_flags |= IMAGE_FLAGS_WineBuiltin; mapping->image.image_flags |= IMAGE_FLAGS_WineBuiltin;
else if (mz_size == sizeof(mz) && !memcmp( mz.buffer, fakedll_signature, sizeof(fakedll_signature) )) else if (mz_size == sizeof(mz) && !memcmp( mz.buffer, fakedll_signature, sizeof(fakedll_signature) ))
......
...@@ -730,6 +730,7 @@ typedef struct ...@@ -730,6 +730,7 @@ typedef struct
unsigned int file_size; unsigned int file_size;
unsigned int checksum; unsigned int checksum;
cpu_type_t cpu; cpu_type_t cpu;
int __pad;
} pe_image_info_t; } pe_image_info_t;
#define IMAGE_FLAGS_ComPlusNativeReady 0x01 #define IMAGE_FLAGS_ComPlusNativeReady 0x01
#define IMAGE_FLAGS_ComPlusILOnly 0x02 #define IMAGE_FLAGS_ComPlusILOnly 0x02
......
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