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
27b7a96d
Commit
27b7a96d
authored
Nov 08, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Fix computation of signed integers in codeview symbol's annotations.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ec31290
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
msc.c
tools/winedump/msc.c
+7
-2
No files found.
tools/winedump/msc.c
View file @
27b7a96d
...
...
@@ -1221,6 +1221,11 @@ static unsigned binannot_uncompress(const unsigned char** pptr)
return
res
;
}
static
inline
int
binannot_getsigned
(
unsigned
i
)
{
return
(
i
&
1
)
?
-
(
int
)(
i
>>
1
)
:
(
i
>>
1
);
}
static
void
dump_binannot
(
const
unsigned
char
*
ba
,
const
char
*
last
,
const
char
*
pfx
)
{
while
(
ba
<
(
const
unsigned
char
*
)
last
)
...
...
@@ -1248,7 +1253,7 @@ static void dump_binannot(const unsigned char* ba, const char* last, const char*
printf
(
"%sChangeFile %u
\n
"
,
pfx
,
binannot_uncompress
(
&
ba
));
break
;
case
BA_OP_ChangeLineOffset
:
printf
(
"%sChangeLineOffset %d
\n
"
,
pfx
,
binannot_
uncompress
(
&
ba
));
printf
(
"%sChangeLineOffset %d
\n
"
,
pfx
,
binannot_
getsigned
(
binannot_uncompress
(
&
ba
)
));
break
;
case
BA_OP_ChangeLineEndDelta
:
printf
(
"%sChangeLineEndDelta %u
\n
"
,
pfx
,
binannot_uncompress
(
&
ba
));
...
...
@@ -1265,7 +1270,7 @@ static void dump_binannot(const unsigned char* ba, const char* last, const char*
case
BA_OP_ChangeCodeOffsetAndLineOffset
:
{
unsigned
p1
=
binannot_uncompress
(
&
ba
);
printf
(
"%sChangeCodeOffsetAndLineOffset %u %u (0x%x)
\n
"
,
pfx
,
p1
&
0xf
,
p1
>>
4
,
p1
);
printf
(
"%sChangeCodeOffsetAndLineOffset %u %u (0x%x)
\n
"
,
pfx
,
p1
&
0xf
,
binannot_getsigned
(
p1
>>
4
)
,
p1
);
}
break
;
case
BA_OP_ChangeCodeLengthAndCodeOffset
:
...
...
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