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
16d13f24
Commit
16d13f24
authored
May 05, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
May 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Fixed minidump processor revision decoding (Coverity).
parent
15a3bd9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
tgt_minidump.c
programs/winedbg/tgt_minidump.c
+7
-7
minidump.c
tools/winedump/minidump.c
+4
-4
No files found.
programs/winedbg/tgt_minidump.c
View file @
16d13f24
...
...
@@ -238,18 +238,18 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
strcat
(
tmp
,
str
);
if
(
msi
->
ProcessorLevel
==
3
||
msi
->
ProcessorLevel
==
4
)
{
if
(
HI
WORD
(
msi
->
ProcessorRevision
)
==
0xFF
)
if
(
HI
BYTE
(
msi
->
ProcessorRevision
)
==
0xFF
)
sprintf
(
tmp
+
strlen
(
tmp
),
" (%c%d)"
,
'A'
+
HIBYTE
(
LOWORD
(
msi
->
ProcessorRevision
))
,
LOBYTE
(
LOWORD
(
msi
->
ProcessorRevision
)));
'A'
+
((
msi
->
ProcessorRevision
>>
4
)
&
0xf
)
-
0x0a
,
((
msi
->
ProcessorRevision
&
0xf
)));
else
sprintf
(
tmp
+
strlen
(
tmp
),
" (%c%d)"
,
'A'
+
HI
WORD
(
msi
->
ProcessorRevision
),
LO
WORD
(
msi
->
ProcessorRevision
));
'A'
+
HI
BYTE
(
msi
->
ProcessorRevision
),
LO
BYTE
(
msi
->
ProcessorRevision
));
}
else
sprintf
(
tmp
+
strlen
(
tmp
),
" (%d.%d)"
,
HI
WORD
(
msi
->
ProcessorRevision
),
LO
WORD
(
msi
->
ProcessorRevision
));
HI
BYTE
(
msi
->
ProcessorRevision
),
LO
BYTE
(
msi
->
ProcessorRevision
));
str
=
tmp
;
break
;
case
PROCESSOR_ARCHITECTURE_MIPS
:
...
...
tools/winedump/minidump.c
View file @
16d13f24
...
...
@@ -267,12 +267,12 @@ void mdmp_dump(void)
strcat
(
tmp
,
" ("
);
if
(
msi
->
ProcessorLevel
==
3
||
msi
->
ProcessorLevel
==
4
)
{
if
(
HI
WORD
(
msi
->
ProcessorRevision
)
==
0xFF
)
sprintf
(
tmp
+
strlen
(
tmp
),
"%c%d"
,
'A'
+
HIBYTE
(
LOWORD
(
msi
->
ProcessorRevision
)),
LOBYTE
(
LOWORD
(
msi
->
ProcessorRevision
))
);
if
(
HI
BYTE
(
msi
->
ProcessorRevision
)
==
0xFF
)
sprintf
(
tmp
+
strlen
(
tmp
),
"%c%d"
,
'A'
+
((
msi
->
ProcessorRevision
>>
4
)
&
0xf
)
-
0x0a
,
msi
->
ProcessorRevision
&
0xf
);
else
sprintf
(
tmp
+
strlen
(
tmp
),
"%c%d"
,
'A'
+
HI
WORD
(
msi
->
ProcessorRevision
),
LOWORD
(
msi
->
ProcessorRevision
));
sprintf
(
tmp
+
strlen
(
tmp
),
"%c%d"
,
'A'
+
HI
BYTE
(
msi
->
ProcessorRevision
),
LOBYTE
(
msi
->
ProcessorRevision
));
}
else
sprintf
(
tmp
+
strlen
(
tmp
),
"%d.%d"
,
HI
WORD
(
msi
->
ProcessorRevision
),
LOWORD
(
msi
->
ProcessorRevision
));
else
sprintf
(
tmp
+
strlen
(
tmp
),
"%d.%d"
,
HI
BYTE
(
msi
->
ProcessorRevision
),
LOBYTE
(
msi
->
ProcessorRevision
));
str
=
tmp
;
break
;
case
PROCESSOR_ARCHITECTURE_MIPS
:
...
...
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