Commit 4e640f8a authored by Alexandre Julliard's avatar Alexandre Julliard

winedump: Remove an unused flag.

parent c66972df
...@@ -1560,13 +1560,13 @@ static void do_grab_sym( void ) ...@@ -1560,13 +1560,13 @@ static void do_grab_sym( void )
if (!pName) {printf("Can't grab functions' name table\n"); return;} if (!pName) {printf("Can't grab functions' name table\n"); return;}
pOrdl = RVA(exportDir->AddressOfNameOrdinals, exportDir->NumberOfNames * sizeof(WORD)); pOrdl = RVA(exportDir->AddressOfNameOrdinals, exportDir->NumberOfNames * sizeof(WORD));
if (!pOrdl) {printf("Can't grab functions' ordinal table\n"); return;} if (!pOrdl) {printf("Can't grab functions' ordinal table\n"); return;}
pFunc = RVA(exportDir->AddressOfFunctions, exportDir->NumberOfFunctions * sizeof(DWORD));
if (!pFunc) {printf("Can't grab functions' address table\n"); return;}
/* dll_close(); */ /* dll_close(); */
if (!(dll_symbols = malloc((exportDir->NumberOfFunctions + 1) * sizeof(dll_symbol)))) if (!(dll_symbols = malloc((exportDir->NumberOfFunctions + 1) * sizeof(dll_symbol))))
fatal ("Out of memory"); fatal ("Out of memory");
if (exportDir->AddressOfFunctions != exportDir->NumberOfNames || exportDir->Base > 1)
globals.do_ordinals = 1;
/* bit map of used funcs */ /* bit map of used funcs */
map = calloc(((exportDir->NumberOfFunctions + 31) & ~31) / 32, sizeof(DWORD)); map = calloc(((exportDir->NumberOfFunctions + 31) & ~31) / 32, sizeof(DWORD));
...@@ -1581,8 +1581,6 @@ static void do_grab_sym( void ) ...@@ -1581,8 +1581,6 @@ static void do_grab_sym( void )
dll_symbols[j].ordinal = exportDir->Base + *pOrdl; dll_symbols[j].ordinal = exportDir->Base + *pOrdl;
assert(dll_symbols[j].symbol); assert(dll_symbols[j].symbol);
} }
pFunc = RVA(exportDir->AddressOfFunctions, exportDir->NumberOfFunctions * sizeof(DWORD));
if (!pFunc) {printf("Can't grab functions' address table\n"); return;}
for (i = 0; i < exportDir->NumberOfFunctions; i++) for (i = 0; i < exportDir->NumberOfFunctions; i++)
{ {
......
...@@ -136,9 +136,6 @@ typedef struct __globals ...@@ -136,9 +136,6 @@ typedef struct __globals
/* Option arguments: dump mode */ /* Option arguments: dump mode */
const char *dumpsect; /* -j */ const char *dumpsect; /* -j */
/* internal options */
int do_ordinals;
} _globals; } _globals;
extern _globals globals; extern _globals globals;
......
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