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
2e991c35
Commit
2e991c35
authored
Jan 03, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Jan 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added partial VxD support.
parent
8fef09f4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
Makefile.in
tools/winedump/Makefile.in
+1
-0
le.c
tools/winedump/le.c
+0
-0
pe.c
tools/winedump/pe.c
+12
-1
No files found.
tools/winedump/Makefile.in
View file @
2e991c35
...
@@ -10,6 +10,7 @@ MODULE = none
...
@@ -10,6 +10,7 @@ MODULE = none
C_SRCS
=
\
C_SRCS
=
\
debug.c
\
debug.c
\
le.c
\
main.c
\
main.c
\
misc.c
\
misc.c
\
msmangle.c
\
msmangle.c
\
...
...
tools/winedump/le.c
0 → 100644
View file @
2e991c35
This diff is collapsed.
Click to expand it.
tools/winedump/pe.c
View file @
2e991c35
...
@@ -54,7 +54,7 @@ void* PE_base;
...
@@ -54,7 +54,7 @@ void* PE_base;
unsigned
long
PE_total_len
;
unsigned
long
PE_total_len
;
IMAGE_NT_HEADERS
*
PE_nt_headers
;
IMAGE_NT_HEADERS
*
PE_nt_headers
;
enum
FileSig
{
SIG_UNKNOWN
,
SIG_DOS
,
SIG_PE
,
SIG_DBG
,
SIG_NE
};
enum
FileSig
{
SIG_UNKNOWN
,
SIG_DOS
,
SIG_PE
,
SIG_DBG
,
SIG_NE
,
SIG_LE
};
static
inline
unsigned
int
strlenW
(
const
WCHAR
*
str
)
static
inline
unsigned
int
strlenW
(
const
WCHAR
*
str
)
{
{
...
@@ -954,6 +954,12 @@ static void do_dump( enum FileSig sig )
...
@@ -954,6 +954,12 @@ static void do_dump( enum FileSig sig )
return
;
return
;
}
}
if
(
sig
==
SIG_LE
)
{
le_dump
(
PE_base
,
PE_total_len
);
return
;
}
if
(
globals
.
do_dumpheader
)
if
(
globals
.
do_dumpheader
)
{
{
dump_pe_header
();
dump_pe_header
();
...
@@ -1018,6 +1024,10 @@ static enum FileSig check_headers(void)
...
@@ -1018,6 +1024,10 @@ static enum FileSig check_headers(void)
{
{
sig
=
SIG_NE
;
sig
=
SIG_NE
;
}
}
else
if
(
*
(
WORD
*
)
pdw
==
IMAGE_VXD_SIGNATURE
)
{
sig
=
SIG_LE
;
}
else
else
{
{
printf
(
"No PE Signature found
\n
"
);
printf
(
"No PE Signature found
\n
"
);
...
@@ -1078,6 +1088,7 @@ static int pe_analysis(const char* name, void (*fn)(enum FileSig), enum FileSig
...
@@ -1078,6 +1088,7 @@ static int pe_analysis(const char* name, void (*fn)(enum FileSig), enum FileSig
ret
=
0
;
break
;
ret
=
0
;
break
;
case
SIG_PE
:
case
SIG_PE
:
case
SIG_NE
:
case
SIG_NE
:
case
SIG_LE
:
printf
(
"Contents of
\"
%s
\"
: %ld bytes
\n\n
"
,
name
,
PE_total_len
);
printf
(
"Contents of
\"
%s
\"
: %ld bytes
\n\n
"
,
name
,
PE_total_len
);
(
*
fn
)(
effective_sig
);
(
*
fn
)(
effective_sig
);
break
;
break
;
...
...
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