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
e77bdbb1
Commit
e77bdbb1
authored
Nov 30, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash in UnMapLS for pointers not belonging to the segptr heap.
parent
ea186796
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
heap.c
memory/heap.c
+1
-1
No files found.
memory/heap.c
View file @
e77bdbb1
...
@@ -908,7 +908,7 @@ void WINAPI UnMapLS( SEGPTR sptr )
...
@@ -908,7 +908,7 @@ void WINAPI UnMapLS( SEGPTR sptr )
/* check if ptr is inside segptr heap */
/* check if ptr is inside segptr heap */
EnterCriticalSection
(
&
segptrHeap
->
critSection
);
EnterCriticalSection
(
&
segptrHeap
->
critSection
);
subheap
=
HEAP_FindSubHeap
(
segptrHeap
,
PTR_SEG_TO_LIN
(
sptr
)
);
subheap
=
HEAP_FindSubHeap
(
segptrHeap
,
PTR_SEG_TO_LIN
(
sptr
)
);
if
(
subheap
->
selector
!=
SELECTOROF
(
sptr
))
subheap
=
NULL
;
if
(
(
subheap
)
&&
(
subheap
->
selector
!=
SELECTOROF
(
sptr
)
))
subheap
=
NULL
;
LeaveCriticalSection
(
&
segptrHeap
->
critSection
);
LeaveCriticalSection
(
&
segptrHeap
->
critSection
);
/* if not inside heap, free the selector */
/* if not inside heap, free the selector */
if
(
!
subheap
)
FreeSelector16
(
SELECTOROF
(
sptr
)
);
if
(
!
subheap
)
FreeSelector16
(
SELECTOROF
(
sptr
)
);
...
...
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