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
880d944e
Commit
880d944e
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Use FIELD_OFFSET instead of reimplementing it.
parent
2ae85119
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
display.c
programs/winedbg/display.c
+1
-3
No files found.
programs/winedbg/display.c
View file @
880d944e
...
...
@@ -40,8 +40,6 @@ struct display
static
struct
display
*
displaypoints
=
NULL
;
static
unsigned
int
maxdisplays
=
0
,
ndisplays
=
0
;
#define OFFSET_OF(_f,_s) ((unsigned)(&(((_s*)NULL)->_f)))
static
inline
BOOL
cmp_symbol
(
const
SYMBOL_INFO
*
si1
,
const
SYMBOL_INFO
*
si2
)
{
/* FIXME: !memcmp(si1, si2, sizeof(SYMBOL_INFO) + si1->NameLen)
...
...
@@ -50,7 +48,7 @@ static inline BOOL cmp_symbol(const SYMBOL_INFO* si1, const SYMBOL_INFO* si2)
* stack_get_frame, so that un-touched fields by stack_get_frame
* get the same value!!
*/
return
!
memcmp
(
si1
,
si2
,
OFFSET_OF
(
Name
,
SYMBOL_INFO
))
&&
return
!
memcmp
(
si1
,
si2
,
FIELD_OFFSET
(
SYMBOL_INFO
,
Name
))
&&
!
memcmp
(
si1
->
Name
,
si2
->
Name
,
si1
->
NameLen
);
}
...
...
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