From ddadd9d84be8b241c0322623647d723848df7cd7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 18 May 2019 09:37:24 +0200 Subject: [PATCH] winedump: Print fake dll information also for NE files. Signed-off-by: Alexandre Julliard --- tools/winedump/ne.c | 1 + tools/winedump/pe.c | 2 +- tools/winedump/winedump.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/winedump/ne.c b/tools/winedump/ne.c index ae0388bd9d3..b4f4f892752 100644 --- a/tools/winedump/ne.c +++ b/tools/winedump/ne.c @@ -427,6 +427,7 @@ void ne_dump( void ) dos = PRD(0, sizeof(*dos)); if (!dos) return; ne = PRD(dos->e_lfanew, sizeof(*ne)); + print_fake_dll(); if (globals.do_dumpheader || !globals.dumpsect) dump_ne_header( ne ); diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index d33e8ef1e83..d24e30a722b 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -98,7 +98,7 @@ static const IMAGE_NT_HEADERS32 *get_nt_header( void ) return PRD(dos->e_lfanew, sizeof(DWORD) + sizeof(IMAGE_FILE_HEADER)); } -static void print_fake_dll( void ) +void print_fake_dll( void ) { static const char builtin_signature[] = "Wine builtin DLL"; static const char fakedll_signature[] = "Wine placeholder DLL"; diff --git a/tools/winedump/winedump.h b/tools/winedump/winedump.h index ea95b27b099..c165872b439 100644 --- a/tools/winedump/winedump.h +++ b/tools/winedump/winedump.h @@ -228,6 +228,7 @@ unsigned int strlenW( const unsigned short *str ); void dump_unicode_str( const unsigned short *str, int len ); const char* get_guid_str(const GUID* guid); const char* get_symbol_str(const char* symname); +void print_fake_dll(void); void dump_file_header(const IMAGE_FILE_HEADER *); void dump_optional_header(const IMAGE_OPTIONAL_HEADER32 *, UINT); void dump_section(const IMAGE_SECTION_HEADER *, const char* strtable);