winedump: Print fake dll information also for NE files.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-05-18 09:37:24 +02:00
parent 16851b1c12
commit ddadd9d84b
3 changed files with 3 additions and 1 deletions

View File

@ -427,6 +427,7 @@ void ne_dump( void )
dos = PRD(0, sizeof(*dos)); dos = PRD(0, sizeof(*dos));
if (!dos) return; if (!dos) return;
ne = PRD(dos->e_lfanew, sizeof(*ne)); ne = PRD(dos->e_lfanew, sizeof(*ne));
print_fake_dll();
if (globals.do_dumpheader || !globals.dumpsect) if (globals.do_dumpheader || !globals.dumpsect)
dump_ne_header( ne ); dump_ne_header( ne );

View File

@ -98,7 +98,7 @@ static const IMAGE_NT_HEADERS32 *get_nt_header( void )
return PRD(dos->e_lfanew, sizeof(DWORD) + sizeof(IMAGE_FILE_HEADER)); 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 builtin_signature[] = "Wine builtin DLL";
static const char fakedll_signature[] = "Wine placeholder DLL"; static const char fakedll_signature[] = "Wine placeholder DLL";

View File

@ -228,6 +228,7 @@ unsigned int strlenW( const unsigned short *str );
void dump_unicode_str( const unsigned short *str, int len ); void dump_unicode_str( const unsigned short *str, int len );
const char* get_guid_str(const GUID* guid); const char* get_guid_str(const GUID* guid);
const char* get_symbol_str(const char* symname); const char* get_symbol_str(const char* symname);
void print_fake_dll(void);
void dump_file_header(const IMAGE_FILE_HEADER *); void dump_file_header(const IMAGE_FILE_HEADER *);
void dump_optional_header(const IMAGE_OPTIONAL_HEADER32 *, UINT); void dump_optional_header(const IMAGE_OPTIONAL_HEADER32 *, UINT);
void dump_section(const IMAGE_SECTION_HEADER *, const char* strtable); void dump_section(const IMAGE_SECTION_HEADER *, const char* strtable);