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
cc4ed132
Commit
cc4ed132
authored
May 23, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use LIST_FOR_EACH_ENTRY in virtual memory code.
parent
28faa92c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
virtual.c
dlls/ntdll/virtual.c
+9
-12
No files found.
dlls/ntdll/virtual.c
View file @
cc4ed132
...
...
@@ -193,13 +193,13 @@ static void VIRTUAL_DumpView( FILE_VIEW *view )
*/
void
VIRTUAL_Dump
(
void
)
{
struct
list
*
ptr
;
struct
file_view
*
view
;
DPRINTF
(
"
\n
Dump of all virtual memory views:
\n\n
"
);
RtlEnterCriticalSection
(
&
csVirtual
);
LIST_FOR_EACH
(
ptr
,
&
views_list
)
LIST_FOR_EACH
_ENTRY
(
view
,
&
views_list
,
FILE_VIEW
,
entry
)
{
VIRTUAL_DumpView
(
LIST_ENTRY
(
ptr
,
struct
file_view
,
entry
)
);
VIRTUAL_DumpView
(
view
);
}
RtlLeaveCriticalSection
(
&
csVirtual
);
}
...
...
@@ -219,11 +219,10 @@ void VIRTUAL_Dump(void)
*/
static
struct
file_view
*
VIRTUAL_FindView
(
const
void
*
addr
)
{
struct
list
*
ptr
;
struct
file_view
*
view
;
LIST_FOR_EACH
(
ptr
,
&
views_list
)
LIST_FOR_EACH
_ENTRY
(
view
,
&
views_list
,
struct
file_view
,
entry
)
{
struct
file_view
*
view
=
LIST_ENTRY
(
ptr
,
struct
file_view
,
entry
);
if
(
view
->
base
>
addr
)
break
;
if
((
const
char
*
)
view
->
base
+
view
->
size
>
(
const
char
*
)
addr
)
return
view
;
}
...
...
@@ -239,11 +238,10 @@ static struct file_view *VIRTUAL_FindView( const void *addr )
*/
static
struct
file_view
*
find_view_range
(
const
void
*
addr
,
size_t
size
)
{
struct
list
*
ptr
;
struct
file_view
*
view
;
LIST_FOR_EACH
(
ptr
,
&
views_list
)
LIST_FOR_EACH
_ENTRY
(
view
,
&
views_list
,
struct
file_view
,
entry
)
{
struct
file_view
*
view
=
LIST_ENTRY
(
ptr
,
struct
file_view
,
entry
);
if
((
const
char
*
)
view
->
base
>=
(
const
char
*
)
addr
+
size
)
break
;
if
((
const
char
*
)
view
->
base
+
view
->
size
>
(
const
char
*
)
addr
)
return
view
;
}
...
...
@@ -283,11 +281,10 @@ static void add_reserved_area( void *addr, size_t size )
*/
static
void
remove_reserved_area
(
void
*
addr
,
size_t
size
)
{
struct
list
*
ptr
;
struct
file_view
*
view
;
LIST_FOR_EACH
(
ptr
,
&
views_list
)
LIST_FOR_EACH
_ENTRY
(
view
,
&
views_list
,
struct
file_view
,
entry
)
{
struct
file_view
*
view
=
LIST_ENTRY
(
ptr
,
struct
file_view
,
entry
);
if
((
char
*
)
view
->
base
>=
(
char
*
)
addr
+
size
)
break
;
if
((
char
*
)
view
->
base
+
view
->
size
<=
(
char
*
)
addr
)
continue
;
/* now we have an overlapping view */
...
...
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