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
922a3360
Commit
922a3360
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Remove casts of void pointers to other pointer types.
parent
93af8d36
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
15 deletions
+14
-15
debug.c
tools/winedump/debug.c
+2
-2
emf.c
tools/winedump/emf.c
+4
-4
minidump.c
tools/winedump/minidump.c
+1
-1
misc.c
tools/winedump/misc.c
+3
-3
pe.c
tools/winedump/pe.c
+2
-3
search.c
tools/winedump/search.c
+2
-2
No files found.
tools/winedump/debug.c
View file @
922a3360
...
...
@@ -514,7 +514,7 @@ static const char *get_coff_name( const IMAGE_SYMBOL *coff_sym, const char *coff
void
dump_coff
(
unsigned
long
coffbase
,
unsigned
long
len
,
const
void
*
pmt
)
{
const
IMAGE_COFF_SYMBOLS_HEADER
*
coff
=
(
const
IMAGE_COFF_SYMBOLS_HEADER
*
)
PRD
(
coffbase
,
len
);
const
IMAGE_COFF_SYMBOLS_HEADER
*
coff
=
PRD
(
coffbase
,
len
);
const
IMAGE_SYMBOL
*
coff_sym
;
const
IMAGE_SYMBOL
*
coff_symbols
=
(
const
IMAGE_SYMBOL
*
)
((
const
char
*
)
coff
+
coff
->
LvaToFirstSymbol
);
...
...
@@ -592,7 +592,7 @@ void dump_frame_pointer_omission(unsigned long base, unsigned long len)
printf
(
"Range #loc #pmt Prlg #reg Info
\n
"
"-----------------+----+----+----+----+------------
\n
"
);
fpo
=
(
const
FPO_DATA
*
)
PRD
(
base
,
len
);
fpo
=
PRD
(
base
,
len
);
if
(
!
fpo
)
{
printf
(
"Couldn't get FPO blob
\n
"
);
return
;}
last
=
(
const
FPO_DATA
*
)((
const
char
*
)
fpo
+
len
);
...
...
tools/winedump/emf.c
View file @
922a3360
...
...
@@ -115,7 +115,7 @@ static int dump_emfrecord(void)
case
EMR_INTERSECTCLIPRECT
:
{
const
EMRINTERSECTCLIPRECT
*
clip
=
(
const
EMRINTERSECTCLIPRECT
*
)
PRD
(
offset
,
sizeof
(
*
clip
));
const
EMRINTERSECTCLIPRECT
*
clip
=
PRD
(
offset
,
sizeof
(
*
clip
));
printf
(
"%-20s %08x
\n
"
,
"EMR_INTERSECTCLIPRECT"
,
length
);
printf
(
"rect %d,%d - %d, %d
\n
"
,
...
...
@@ -170,7 +170,7 @@ static int dump_emfrecord(void)
case
EMR_EXTSELECTCLIPRGN
:
{
const
EMREXTSELECTCLIPRGN
*
clip
=
(
const
EMREXTSELECTCLIPRGN
*
)
PRD
(
offset
,
sizeof
(
*
clip
));
const
EMREXTSELECTCLIPRGN
*
clip
=
PRD
(
offset
,
sizeof
(
*
clip
));
const
RGNDATA
*
data
=
(
RGNDATA
*
)
clip
->
RgnData
;
DWORD
i
,
rc_count
=
0
;
RECT
*
rc
;
...
...
@@ -195,7 +195,7 @@ static int dump_emfrecord(void)
case
EMR_EXTCREATEFONTINDIRECTW
:
{
const
EMREXTCREATEFONTINDIRECTW
*
pf
=
(
const
EMREXTCREATEFONTINDIRECTW
*
)
PRD
(
offset
,
sizeof
(
*
pf
));
const
EMREXTCREATEFONTINDIRECTW
*
pf
=
PRD
(
offset
,
sizeof
(
*
pf
));
const
LOGFONTW
*
plf
=
&
pf
->
elfw
.
elfLogFont
;
printf
(
"%-20s %08x
\n
"
,
"EMR_EXTCREATEFONTINDIRECTW"
,
length
);
...
...
@@ -216,7 +216,7 @@ static int dump_emfrecord(void)
case
EMR_EXTTEXTOUTW
:
{
const
EMREXTTEXTOUTW
*
etoW
=
(
const
EMREXTTEXTOUTW
*
)
PRD
(
offset
,
sizeof
(
*
etoW
));
const
EMREXTTEXTOUTW
*
etoW
=
PRD
(
offset
,
sizeof
(
*
etoW
));
printf
(
"%-20s %08x
\n
"
,
"EMR_EXTTEXTOUTW"
,
length
);
printf
(
"pt (%d,%d) rect (%d,%d - %d,%d) flags %#x, %s
\n
"
,
...
...
tools/winedump/minidump.c
View file @
922a3360
...
...
@@ -72,7 +72,7 @@ enum FileSig get_kind_mdmp(void)
void
mdmp_dump
(
void
)
{
const
MINIDUMP_HEADER
*
hdr
=
(
const
MINIDUMP_HEADER
*
)
PRD
(
0
,
sizeof
(
MINIDUMP_HEADER
));
const
MINIDUMP_HEADER
*
hdr
=
PRD
(
0
,
sizeof
(
MINIDUMP_HEADER
));
ULONG
idx
,
ndir
=
0
;
const
MINIDUMP_DIRECTORY
*
dir
;
const
void
*
stream
;
...
...
tools/winedump/misc.c
View file @
922a3360
...
...
@@ -41,7 +41,7 @@ char *str_create(size_t num_str, ...)
len
+=
strlen
(
t
);
va_end
(
args
);
if
(
!
(
tmp
=
(
char
*
)
malloc
(
len
)))
if
(
!
(
tmp
=
malloc
(
len
)))
fatal
(
"Out of memory"
);
tmp
[
0
]
=
'\0'
;
...
...
@@ -72,7 +72,7 @@ char *str_create_num(size_t num_str, int num, ...)
len
+=
strlen
(
t
);
va_end
(
args
);
if
(
!
(
tmp
=
(
char
*
)
malloc
(
len
)))
if
(
!
(
tmp
=
malloc
(
len
)))
fatal
(
"Out of memory"
);
tmp
[
0
]
=
'\0'
;
...
...
@@ -98,7 +98,7 @@ char *str_substring(const char *start, const char *end)
assert
(
start
&&
end
&&
end
>
start
);
if
(
!
(
newstr
=
(
char
*
)
malloc
(
end
-
start
+
1
)))
if
(
!
(
newstr
=
malloc
(
end
-
start
+
1
)))
fatal
(
"Out of memory"
);
memcpy
(
newstr
,
start
,
end
-
start
);
...
...
tools/winedump/pe.c
View file @
922a3360
...
...
@@ -664,7 +664,7 @@ static void dump_dir_delay_imported_functions(void)
printf
(
" Ordn Name
\n
"
);
il
=
(
const
IMAGE_THUNK_DATA32
*
)
RVA
(
importDesc
->
pINT
-
offset
,
sizeof
(
DWORD
));
il
=
RVA
(
importDesc
->
pINT
-
offset
,
sizeof
(
DWORD
));
if
(
!
il
)
printf
(
"Can't grab thunk data, going to next imported DLL
\n
"
);
...
...
@@ -1321,8 +1321,7 @@ static void do_grab_sym( void )
/* dll_close(); */
if
(
!
(
dll_symbols
=
(
dll_symbol
*
)
malloc
((
exportDir
->
NumberOfFunctions
+
1
)
*
sizeof
(
dll_symbol
))))
if
(
!
(
dll_symbols
=
malloc
((
exportDir
->
NumberOfFunctions
+
1
)
*
sizeof
(
dll_symbol
))))
fatal
(
"Out of memory"
);
if
(
exportDir
->
AddressOfFunctions
!=
exportDir
->
NumberOfNames
||
exportDir
->
Base
>
1
)
globals
.
do_ordinals
=
1
;
...
...
tools/winedump/search.c
View file @
922a3360
...
...
@@ -50,10 +50,10 @@ int symbol_search (parsed_symbol *sym)
return
-
1
;
if
(
!
grep_buff
)
grep_buff
=
(
char
*
)
malloc
(
MAX_RESULT_LEN
);
grep_buff
=
malloc
(
MAX_RESULT_LEN
);
if
(
!
fgrep_buff
)
fgrep_buff
=
(
char
*
)
malloc
(
MAX_RESULT_LEN
);
fgrep_buff
=
malloc
(
MAX_RESULT_LEN
);
if
(
!
grep_buff
||
!
fgrep_buff
)
fatal
(
"Out of Memory"
);
...
...
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