Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
757caa01
Commit
757caa01
authored
Sep 27, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dumping of the resident name table of NE files.
parent
90dc6580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ne.c
tools/winedump/ne.c
+13
-0
No files found.
tools/winedump/ne.c
View file @
757caa01
...
...
@@ -60,6 +60,18 @@ static void dump_ne_header( const IMAGE_OS2_HEADER *ne )
printf
(
"Expected version: %d.%d
\n
"
,
HIBYTE
(
ne
->
ne_expver
),
LOBYTE
(
ne
->
ne_expver
)
);
}
static
void
dump_ne_names
(
const
void
*
base
,
const
IMAGE_OS2_HEADER
*
ne
)
{
char
*
pstr
=
(
char
*
)
ne
+
ne
->
ne_restab
;
printf
(
"
\n
Resident-name table:
\n
"
);
while
(
*
pstr
)
{
printf
(
"%*.*s: %d
\n
"
,
*
pstr
,
*
pstr
,
pstr
+
1
,
*
(
WORD
*
)(
pstr
+
*
pstr
+
1
)
);
pstr
+=
*
pstr
+
1
+
sizeof
(
WORD
);
}
}
static
const
char
*
get_resource_type
(
WORD
id
)
{
static
char
buffer
[
5
];
...
...
@@ -116,5 +128,6 @@ void ne_dump( const void *exe, size_t exe_size )
const
IMAGE_OS2_HEADER
*
ne
=
(
IMAGE_OS2_HEADER
*
)((
char
*
)
dos
+
dos
->
e_lfanew
);
dump_ne_header
(
ne
);
dump_ne_names
(
exe
,
ne
);
dump_ne_resources
(
exe
,
ne
);
}
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