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
c936e505
Commit
c936e505
authored
Jun 22, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jun 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add missing ReleaseActCtx() calls. (Valgrind).
parent
c1cd6095
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
thread.c
dlls/kernel32/tests/thread.c
+5
-0
No files found.
dlls/kernel32/tests/thread.c
View file @
c936e505
...
...
@@ -1578,6 +1578,7 @@ static void test_thread_actctx(void)
b
=
pGetCurrentActCtx
(
&
handle
);
ok
(
b
,
"GetCurentActCtx failed: %u
\n
"
,
GetLastError
());
ok
(
handle
!=
0
,
"no active context
\n
"
);
pReleaseActCtx
(
handle
);
param
.
handle
=
NULL
;
b
=
pGetCurrentActCtx
(
&
param
.
handle
);
...
...
@@ -1590,6 +1591,7 @@ static void test_thread_actctx(void)
ret
=
WaitForSingleObject
(
thread
,
1000
);
ok
(
ret
==
WAIT_OBJECT_0
,
"wait timeout
\n
"
);
ok
(
param
.
thread_context
==
context
,
"got wrong thread context %p, %p
\n
"
,
param
.
thread_context
,
context
);
pReleaseActCtx
(
param
.
thread_context
);
CloseHandle
(
thread
);
/* similar test for CreateRemoteThread() */
...
...
@@ -1600,8 +1602,11 @@ static void test_thread_actctx(void)
ret
=
WaitForSingleObject
(
thread
,
1000
);
ok
(
ret
==
WAIT_OBJECT_0
,
"wait timeout
\n
"
);
ok
(
param
.
thread_context
==
context
,
"got wrong thread context %p, %p
\n
"
,
param
.
thread_context
,
context
);
pReleaseActCtx
(
param
.
thread_context
);
CloseHandle
(
thread
);
pReleaseActCtx
(
param
.
handle
);
b
=
pDeactivateActCtx
(
0
,
cookie
);
ok
(
b
,
"DeactivateActCtx failed: %u
\n
"
,
GetLastError
());
pReleaseActCtx
(
context
);
...
...
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