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
a6e27ea9
Commit
a6e27ea9
authored
Dec 13, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Const correctness fixes.
parent
07dfb1ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
le.c
tools/winedump/le.c
+5
-5
ne.c
tools/winedump/ne.c
+6
-6
No files found.
tools/winedump/le.c
View file @
a6e27ea9
...
...
@@ -228,15 +228,15 @@ static void dump_le_header( const IMAGE_VXD_HEADER *le )
static
void
dump_le_objects
(
const
void
*
base
,
const
IMAGE_VXD_HEADER
*
le
)
{
struct
o32_obj
*
pobj
;
const
struct
o32_obj
*
pobj
;
unsigned
int
i
;
printf
(
"
\n
Object table:
\n
"
);
pobj
=
(
struct
o32_obj
*
)((
const
unsigned
char
*
)
le
+
le
->
e32_objtab
);
pobj
=
(
const
struct
o32_obj
*
)((
const
unsigned
char
*
)
le
+
le
->
e32_objtab
);
for
(
i
=
0
;
i
<
le
->
e32_objcnt
;
i
++
)
{
unsigned
int
j
;
struct
o32_map
*
pmap
=
0
;
const
struct
o32_map
*
pmap
=
0
;
printf
(
" Obj. Rel.Base Codesize Flags Tableidx Tablesize Name
\n
"
);
printf
(
" %04X %08lx %08lx %08lx %08lx %08lx "
,
i
+
1
,
...
...
@@ -272,7 +272,7 @@ static void dump_le_objects( const void *base, const IMAGE_VXD_HEADER *le )
printf
(
" Page tables:
\n
"
);
printf
(
" Tableidx Offset Flags
\n
"
);
pmap
=
(
struct
o32_map
*
)((
const
unsigned
char
*
)
le
+
le
->
e32_objmap
);
pmap
=
(
const
struct
o32_map
*
)((
const
unsigned
char
*
)
le
+
le
->
e32_objmap
);
pmap
=
&
(
pmap
[
pobj
->
o32_pagemap
-
1
]);
for
(
j
=
0
;
j
<
pobj
->
o32_mapsize
;
j
++
)
{
...
...
@@ -300,7 +300,7 @@ static void dump_le_names( const void *base, const IMAGE_VXD_HEADER *le )
if
(
le
->
e32_cbnrestab
)
{
printf
(
"
\n
Non-resident name table:
\n
"
);
pstr
=
(
unsigned
char
*
)
base
+
le
->
e32_nrestab
;
pstr
=
(
const
unsigned
char
*
)
base
+
le
->
e32_nrestab
;
while
(
*
pstr
)
{
printf
(
" %4d: %*.*s
\n
"
,
get_word
(
pstr
+
*
pstr
+
1
),
*
pstr
,
*
pstr
,
...
...
tools/winedump/ne.c
View file @
a6e27ea9
...
...
@@ -108,7 +108,7 @@ static void dump_ne_names( const void *base, const IMAGE_OS2_HEADER *ne )
if
(
ne
->
ne_cbnrestab
)
{
printf
(
"
\n
Non-resident name table:
\n
"
);
pstr
=
(
unsigned
char
*
)
base
+
ne
->
ne_nrestab
;
pstr
=
(
const
unsigned
char
*
)
base
+
ne
->
ne_nrestab
;
while
(
*
pstr
)
{
printf
(
" %4d: %*.*s
\n
"
,
get_word
(
pstr
+
*
pstr
+
1
),
*
pstr
,
*
pstr
,
pstr
+
1
);
...
...
@@ -171,7 +171,7 @@ static void dump_ne_resources( const void *base, const IMAGE_OS2_HEADER *ne )
static
const
char
*
get_export_name
(
const
void
*
base
,
const
IMAGE_OS2_HEADER
*
ne
,
int
ordinal
)
{
static
char
name
[
256
];
BYTE
*
pstr
;
const
BYTE
*
pstr
;
int
pass
=
0
;
/* search the resident names */
...
...
@@ -180,13 +180,13 @@ static const char *get_export_name( const void *base, const IMAGE_OS2_HEADER *ne
{
if
(
pass
==
0
)
/* resident names */
{
pstr
=
(
BYTE
*
)
ne
+
ne
->
ne_restab
;
pstr
=
(
const
BYTE
*
)
ne
+
ne
->
ne_restab
;
if
(
*
pstr
)
pstr
+=
*
pstr
+
1
+
sizeof
(
WORD
);
/* skip first entry (module name) */
}
else
/* non-resident names */
{
if
(
!
ne
->
ne_cbnrestab
)
break
;
pstr
=
(
BYTE
*
)
base
+
ne
->
ne_nrestab
;
pstr
=
(
const
BYTE
*
)
base
+
ne
->
ne_nrestab
;
}
while
(
*
pstr
)
{
...
...
@@ -207,8 +207,8 @@ static const char *get_export_name( const void *base, const IMAGE_OS2_HEADER *ne
static
void
dump_ne_exports
(
const
void
*
base
,
const
IMAGE_OS2_HEADER
*
ne
)
{
BYTE
*
ptr
=
(
BYTE
*
)
ne
+
ne
->
ne_enttab
;
BYTE
*
end
=
ptr
+
ne
->
ne_cbenttab
;
const
BYTE
*
ptr
=
(
const
BYTE
*
)
ne
+
ne
->
ne_enttab
;
const
BYTE
*
end
=
ptr
+
ne
->
ne_cbenttab
;
int
i
,
ordinal
=
1
;
if
(
!
ne
->
ne_cbenttab
||
!*
ptr
)
return
;
...
...
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