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
1f490ec1
Commit
1f490ec1
authored
Apr 26, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
May 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Respect HEAP_NO_SERIALIZE flag in HeapLock / HeapUnlock.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
005ed577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
heap.c
dlls/kernel32/tests/heap.c
+0
-2
heap.c
dlls/ntdll/heap.c
+2
-2
No files found.
dlls/kernel32/tests/heap.c
View file @
1f490ec1
...
...
@@ -952,11 +952,9 @@ static void test_HeapCreate(void)
thread_params
.
flags
=
0
;
SetEvent
(
thread_params
.
start_event
);
res
=
WaitForSingleObject
(
thread_params
.
ready_event
,
100
);
todo_wine
ok
(
!
res
,
"WaitForSingleObject returned %#lx, error %lu
\n
"
,
res
,
GetLastError
()
);
ret
=
HeapUnlock
(
heap
);
ok
(
ret
,
"HeapUnlock failed, error %lu
\n
"
,
GetLastError
()
);
if
(
res
)
WaitForSingleObject
(
thread_params
.
ready_event
,
100
);
ret
=
HeapLock
(
heap
);
ok
(
ret
,
"HeapLock failed, error %lu
\n
"
,
GetLastError
()
);
...
...
dlls/ntdll/heap.c
View file @
1f490ec1
...
...
@@ -1992,7 +1992,7 @@ BOOLEAN WINAPI RtlLockHeap( HANDLE heap )
{
HEAP
*
heapPtr
=
HEAP_GetPtr
(
heap
);
if
(
!
heapPtr
)
return
FALSE
;
RtlEnterCriticalSection
(
&
heapPtr
->
cs
);
heap_lock
(
heapPtr
,
0
);
return
TRUE
;
}
...
...
@@ -2013,7 +2013,7 @@ BOOLEAN WINAPI RtlUnlockHeap( HANDLE heap )
{
HEAP
*
heapPtr
=
HEAP_GetPtr
(
heap
);
if
(
!
heapPtr
)
return
FALSE
;
RtlLeaveCriticalSection
(
&
heapPtr
->
cs
);
heap_unlock
(
heapPtr
,
0
);
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