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
fac74963
Commit
fac74963
authored
Mar 29, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix the way array derefs are done.
parent
a61e1177
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
types.c
programs/winedbg/types.c
+8
-8
No files found.
programs/winedbg/types.c
View file @
fac74963
...
...
@@ -310,26 +310,26 @@ BOOL types_array_index(const struct dbg_lvalue* lvalue, int index,
DWORD64
length
;
if
(
!
types_get_real_type
(
&
type
,
&
tag
))
return
FALSE
;
/* Contents of array share same data (addr mode, module...) */
*
result
=
*
lvalue
;
switch
(
tag
)
{
case
SymTagArrayType
:
types_get_info
(
&
type
,
TI_GET_COUNT
,
&
count
);
if
(
index
<
0
||
index
>=
count
)
return
FALSE
;
/* fall through */
break
;
case
SymTagPointerType
:
/* Contents of array share same data (addr mode, module...) */
*
result
=
*
lvalue
;
memory_read_value
(
lvalue
,
sizeof
(
result
->
addr
.
Offset
),
&
result
->
addr
.
Offset
);
break
;
default:
assert
(
FALSE
);
}
/*
* Get the base type, so we know how much to index by.
*/
types_get_info
(
&
type
,
TI_GET_TYPE
,
&
result
->
type
.
id
);
types_get_info
(
&
result
->
type
,
TI_GET_LENGTH
,
&
length
);
memory_read_value
(
lvalue
,
sizeof
(
result
->
addr
.
Offset
),
&
result
->
addr
.
Offset
);
result
->
addr
.
Offset
+=
index
*
(
DWORD
)
length
;
break
;
default:
assert
(
FALSE
);
}
return
TRUE
;
}
...
...
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