summaryrefslogtreecommitdiffstats
path: root/src/file_exe.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-01-24 13:22:42 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-01-24 13:22:42 +0100
commit0fa875f97f6b679c56027a8fb8b63db2f928a5bc (patch)
treeb68fbd6ba354dda2ba2068989a357b4edb798a41 /src/file_exe.c
parenteab88caf92265cea557aaae24adb34dcd5f62ac8 (diff)
file_exe.c: rename a file structure
Diffstat (limited to 'src/file_exe.c')
-rw-r--r--src/file_exe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/file_exe.c b/src/file_exe.c
index 2192e56..e1f80f8 100644
--- a/src/file_exe.c
+++ b/src/file_exe.c
@@ -204,7 +204,7 @@ static int header_check_exe(const unsigned char *buffer, const unsigned int buff
return 0;
}
-struct rsrc_entries
+struct rsrc_entries_s
{
uint32_t Type;
uint32_t Pos;
@@ -339,8 +339,8 @@ static void PEVersion(FILE *file, const unsigned int offset, const unsigned int
static void file_exe_ressource(FILE *file, const unsigned int base, const unsigned int dir_start, const unsigned int size, const unsigned int rsrcType, const unsigned int level, const struct pe_image_section_hdr *pe_sections, unsigned int nbr_sections, const char *old_filename)
{
- struct rsrc_entries *rsrc_entries;
- struct rsrc_entries *rsrc_entry;
+ struct rsrc_entries_s *rsrc_entries;
+ struct rsrc_entries_s *rsrc_entry;
unsigned char buffer[16];
int buffer_size;
unsigned int nameEntries;
@@ -362,8 +362,8 @@ static void file_exe_ressource(FILE *file, const unsigned int base, const unsign
count = nameEntries + idEntries;
if(count==0 || count > 1024)
return ;
- rsrc_entries=(struct rsrc_entries *)MALLOC(count * sizeof(struct rsrc_entries));
- if(fread(rsrc_entries, sizeof(struct rsrc_entries), count, file) != count)
+ rsrc_entries=(struct rsrc_entries_s *)MALLOC(count * sizeof(struct rsrc_entries_s));
+ if(fread(rsrc_entries, sizeof(struct rsrc_entries_s), count, file) != count)
{
free(rsrc_entries);
return ;