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
38882460
Commit
38882460
authored
Oct 14, 1998
by
Ulrich Weigand
Committed by
Alexandre Julliard
Oct 14, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: Local32Free caused free handles list corruption.
parent
48ed3e11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
heap.c
memory/heap.c
+3
-3
No files found.
memory/heap.c
View file @
38882460
...
@@ -1672,7 +1672,7 @@ DWORD WINAPI Local32Alloc( HANDLE32 heap, DWORD size, INT16 type, DWORD flags )
...
@@ -1672,7 +1672,7 @@ DWORD WINAPI Local32Alloc( HANDLE32 heap, DWORD size, INT16 type, DWORD flags )
for
(
i
=
0
;
i
<
HTABLE_PAGESIZE
;
i
+=
4
)
for
(
i
=
0
;
i
<
HTABLE_PAGESIZE
;
i
+=
4
)
*
(
DWORD
*
)((
LPBYTE
)
header
+
i
)
=
i
+
4
;
*
(
DWORD
*
)((
LPBYTE
)
header
+
i
)
=
i
+
4
;
if
(
page
<
3
1
)
if
(
page
<
HTABLE_NPAGES
-
1
)
header
->
freeListFirst
[
page
+
1
]
=
0xffff
;
header
->
freeListFirst
[
page
+
1
]
=
0xffff
;
}
}
...
@@ -1756,7 +1756,7 @@ BOOL32 WINAPI Local32Free( HANDLE32 heap, DWORD addr, INT16 type )
...
@@ -1756,7 +1756,7 @@ BOOL32 WINAPI Local32Free( HANDLE32 heap, DWORD addr, INT16 type )
header
->
freeListFirst
[
page
]
=
header
->
freeListLast
[
page
]
=
offset
;
header
->
freeListFirst
[
page
]
=
header
->
freeListLast
[
page
]
=
offset
;
else
else
*
(
LPDWORD
)((
LPBYTE
)
header
+
header
->
freeListLast
[
page
])
=
offset
,
*
(
LPDWORD
)((
LPBYTE
)
header
+
header
->
freeListLast
[
page
])
=
offset
,
header
->
freeListLast
[
page
]
=
*
handle
;
header
->
freeListLast
[
page
]
=
offset
;
*
handle
=
0
;
*
handle
=
0
;
...
@@ -1769,7 +1769,7 @@ BOOL32 WINAPI Local32Free( HANDLE32 heap, DWORD addr, INT16 type )
...
@@ -1769,7 +1769,7 @@ BOOL32 WINAPI Local32Free( HANDLE32 heap, DWORD addr, INT16 type )
break
;
break
;
header
->
limit
-=
HTABLE_PAGESIZE
;
header
->
limit
-=
HTABLE_PAGESIZE
;
header
->
freeListFirst
[
page
]
=
-
1
;
header
->
freeListFirst
[
page
]
=
0xffff
;
page
--
;
page
--
;
}
}
}
}
...
...
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