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
19c9d083
Commit
19c9d083
authored
Jul 23, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Simplify the "pointer to start of array" idiom.
parent
93185287
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
debug.c
tools/winedump/debug.c
+1
-1
minidump.c
tools/winedump/minidump.c
+4
-4
pdb.c
tools/winedump/pdb.c
+4
-4
No files found.
tools/winedump/debug.c
View file @
19c9d083
...
...
@@ -500,7 +500,7 @@ static const char *get_coff_name( const IMAGE_SYMBOL *coff_sym, const char *coff
{
memcpy
(
namebuff
,
coff_sym
->
N
.
ShortName
,
8
);
namebuff
[
8
]
=
'\0'
;
nampnt
=
&
namebuff
[
0
]
;
nampnt
=
namebuff
;
}
else
{
...
...
tools/winedump/minidump.c
View file @
19c9d083
...
...
@@ -102,7 +102,7 @@ void mdmp_dump(void)
case
ThreadListStream
:
{
const
MINIDUMP_THREAD_LIST
*
mtl
=
(
const
MINIDUMP_THREAD_LIST
*
)
stream
;
const
MINIDUMP_THREAD
*
mt
=
&
mtl
->
Threads
[
0
]
;
const
MINIDUMP_THREAD
*
mt
=
mtl
->
Threads
;
unsigned
int
i
;
printf
(
"Threads: %u
\n
"
,
mtl
->
NumberOfThreads
);
...
...
@@ -129,7 +129,7 @@ void mdmp_dump(void)
case
0xFFF0
:
{
const
MINIDUMP_MODULE_LIST
*
mml
=
(
const
MINIDUMP_MODULE_LIST
*
)
stream
;
const
MINIDUMP_MODULE
*
mm
=
&
mml
->
Modules
[
0
]
;
const
MINIDUMP_MODULE
*
mm
=
mml
->
Modules
;
unsigned
int
i
;
const
char
*
p1
;
const
char
*
p2
;
...
...
@@ -224,7 +224,7 @@ void mdmp_dump(void)
case
MemoryListStream
:
{
const
MINIDUMP_MEMORY_LIST
*
mml
=
(
const
MINIDUMP_MEMORY_LIST
*
)
stream
;
const
MINIDUMP_MEMORY_DESCRIPTOR
*
mmd
=
&
mml
->
MemoryRanges
[
0
]
;
const
MINIDUMP_MEMORY_DESCRIPTOR
*
mmd
=
mml
->
MemoryRanges
;
unsigned
int
i
;
printf
(
"Memory Ranges: %u
\n
"
,
mml
->
NumberOfMemoryRanges
);
...
...
@@ -333,7 +333,7 @@ void mdmp_dump(void)
if
(
msi
->
ProcessorArchitecture
==
PROCESSOR_ARCHITECTURE_INTEL
)
{
printf
(
" x86.VendorId: %.12s
\n
"
,
(
const
char
*
)
&
msi
->
Cpu
.
X86CpuInfo
.
VendorId
[
0
]
);
(
const
char
*
)
msi
->
Cpu
.
X86CpuInfo
.
VendorId
);
printf
(
" x86.VersionInformation: %x
\n
"
,
msi
->
Cpu
.
X86CpuInfo
.
VersionInformation
);
printf
(
" x86.FeatureInformation: %x
\n
"
,
...
...
tools/winedump/pdb.c
View file @
19c9d083
...
...
@@ -174,12 +174,12 @@ static unsigned get_stream_by_name(struct pdb_reader* reader, const char* name)
if
(
reader
->
read_file
==
pdb_jg_read_file
)
{
str
=
&
reader
->
u
.
jg
.
root
->
names
[
0
]
;
str
=
reader
->
u
.
jg
.
root
->
names
;
cbstr
=
reader
->
u
.
jg
.
root
->
cbNames
;
}
else
{
str
=
&
reader
->
u
.
ds
.
root
->
names
[
0
]
;
str
=
reader
->
u
.
ds
.
root
->
names
;
cbstr
=
reader
->
u
.
ds
.
root
->
cbNames
;
}
...
...
@@ -740,7 +740,7 @@ static void pdb_jg_dump(void)
reader
.
u
.
jg
.
root
->
Age
,
(
unsigned
)
reader
.
u
.
jg
.
root
->
cbNames
);
pdw
=
(
DWORD
*
)(
&
reader
.
u
.
jg
.
root
->
names
[
0
]
+
reader
.
u
.
jg
.
root
->
cbNames
);
pdw
=
(
DWORD
*
)(
reader
.
u
.
jg
.
root
->
names
+
reader
.
u
.
jg
.
root
->
cbNames
);
numok
=
*
pdw
++
;
count
=
*
pdw
++
;
printf
(
"
\t
Streams directory:
\n
"
...
...
@@ -895,7 +895,7 @@ static void pdb_ds_dump(void)
reader
.
u
.
ds
.
root
->
Age
,
get_guid_str
(
&
reader
.
u
.
ds
.
root
->
guid
),
reader
.
u
.
ds
.
root
->
cbNames
);
pdw
=
(
DWORD
*
)(
&
reader
.
u
.
ds
.
root
->
names
[
0
]
+
reader
.
u
.
ds
.
root
->
cbNames
);
pdw
=
(
DWORD
*
)(
reader
.
u
.
ds
.
root
->
names
+
reader
.
u
.
ds
.
root
->
cbNames
);
numok
=
*
pdw
++
;
count
=
*
pdw
++
;
printf
(
"
\t
Streams directory:
\n
"
...
...
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