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
5b54dac3
Commit
5b54dac3
authored
Nov 26, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Use macros when manipulating variants.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
07502a06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
memory.c
programs/winedbg/memory.c
+3
-3
symbol.c
programs/winedbg/symbol.c
+1
-1
No files found.
programs/winedbg/memory.c
View file @
5b54dac3
...
...
@@ -466,10 +466,10 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
sub_type
.
id
=
fcp
->
ChildId
[
i
];
if
(
!
types_get_info
(
&
sub_type
,
TI_GET_VALUE
,
&
variant
))
continue
;
switch
(
variant
.
n1
.
n2
.
vt
)
switch
(
V_VT
(
&
variant
)
)
{
case
VT_I4
:
ok
=
(
val_int
==
variant
.
n1
.
n2
.
n3
.
lVal
);
break
;
default:
WINE_FIXME
(
"Unsupported variant type (%u)
\n
"
,
variant
.
n1
.
n2
.
vt
);
case
VT_I4
:
ok
=
(
val_int
==
V_I4
(
&
variant
)
);
break
;
default:
WINE_FIXME
(
"Unsupported variant type (%u)
\n
"
,
V_VT
(
&
variant
)
);
}
if
(
ok
)
{
...
...
programs/winedbg/symbol.c
View file @
5b54dac3
...
...
@@ -105,7 +105,7 @@ static BOOL fill_sym_lvalue(const SYMBOL_INFO* sym, ULONG_PTR base,
if
(
buffer
)
snprintf
(
buffer
,
sz
,
"Couldn't get full value information for %s"
,
sym
->
Name
);
return
FALSE
;
}
else
if
(
v
.
n1
.
n2
.
vt
&
VT_BYREF
)
else
if
(
V_ISBYREF
(
&
v
)
)
{
/* FIXME: this won't work for pointers or arrays, as we don't always
* know, if the value to be dereferenced lies in debuggee or
...
...
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