Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
59182a92
Commit
59182a92
authored
Mar 15, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Mar 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only sort the number of symbols actually found.
parent
272d2404
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
pe.c
tools/winedump/pe.c
+7
-7
No files found.
tools/winedump/pe.c
View file @
59182a92
...
...
@@ -621,7 +621,7 @@ static void dump_unicode_str( const WCHAR *str, int len )
printf
(
"
\"
"
);
}
static
const
char
*
get_resource_type
(
int
id
)
static
const
char
*
get_resource_type
(
unsigned
int
id
)
{
static
const
char
*
types
[]
=
{
...
...
@@ -851,7 +851,7 @@ int pe_analysis(const char* name, void (*fn)(enum FileSig), enum FileSig wanted_
#endif
{
if
(
!
(
PE_base
=
malloc
(
PE_total_len
)))
fatal
(
"Out of memory"
);
if
(
read
(
fd
,
PE_base
,
PE_total_len
)
!=
PE_total_len
)
fatal
(
"Cannot read file"
);
if
(
read
(
fd
,
PE_base
,
PE_total_len
)
!=
(
int
)
PE_total_len
)
fatal
(
"Cannot read file"
);
}
effective_sig
=
check_headers
();
...
...
@@ -979,7 +979,7 @@ static void do_grab_sym( enum FileSig sig )
ptr
=
RVA
(
*
pName
++
,
sizeof
(
DWORD
));
if
(
!
ptr
)
ptr
=
"cant_get_function"
;
dll_symbols
[
j
].
symbol
=
strdup
(
ptr
);
dll_symbols
[
j
].
ordinal
=
-
1
;
/* indicate non-ordinal symbol */
dll_symbols
[
j
].
ordinal
=
exportDir
->
Base
+
*
pOrdl
;
assert
(
dll_symbols
[
j
].
symbol
);
}
pFunc
=
RVA
(
exportDir
->
AddressOfFunctions
,
exportDir
->
NumberOfFunctions
*
sizeof
(
DWORD
));
...
...
@@ -1005,12 +1005,12 @@ static void do_grab_sym( enum FileSig sig )
free
(
map
);
if
(
NORMAL
)
printf
(
"%lu named symbols in DLL, %lu total
\n
"
,
exportDir
->
NumberOfNames
,
exportDir
->
NumberOfFunctions
);
printf
(
"%lu named symbols in DLL, %lu total
, %d unique (ordinal base = %ld)
\n
"
,
exportDir
->
NumberOfNames
,
exportDir
->
NumberOfFunctions
,
j
,
exportDir
->
Base
);
qsort
(
dll_symbols
,
exportDir
->
NumberOfFunctions
,
sizeof
(
dll_symbol
),
symbol_cmp
);
qsort
(
dll_symbols
,
j
,
sizeof
(
dll_symbol
),
symbol_cmp
);
dll_symbols
[
exportDir
->
NumberOfFunctions
].
symbol
=
NULL
;
dll_symbols
[
j
].
symbol
=
NULL
;
dll_current_symbol
=
dll_symbols
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment