Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
901ca36b
Commit
901ca36b
authored
Jan 20, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jan 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow passing task handles to GetThreadQueue() and SetFastQueue().
parent
0be24af7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
task.c
loader/task.c
+16
-2
No files found.
loader/task.c
View file @
901ca36b
...
...
@@ -1244,7 +1244,14 @@ HQUEUE16 WINAPI SetThreadQueue( DWORD thread, HQUEUE16 hQueue )
*/
HQUEUE16
WINAPI
GetThreadQueue
(
DWORD
thread
)
{
THDB
*
thdb
=
thread
?
THREAD_IdToTHDB
(
thread
)
:
THREAD_Current
();
THDB
*
thdb
=
NULL
;
if
(
!
thread
)
thdb
=
THREAD_Current
();
else
if
(
HIWORD
(
thread
)
)
thdb
=
THREAD_IdToTHDB
(
thread
);
else
if
(
IsTask
(
(
HTASK16
)
thread
)
)
thdb
=
((
TDB
*
)
GlobalLock16
(
(
HANDLE16
)
thread
))
->
thdb
;
return
(
HQUEUE16
)(
thdb
?
thdb
->
teb
.
queue
:
0
);
}
...
...
@@ -1253,7 +1260,14 @@ HQUEUE16 WINAPI GetThreadQueue( DWORD thread )
*/
VOID
WINAPI
SetFastQueue
(
DWORD
thread
,
HANDLE32
hQueue
)
{
THDB
*
thdb
=
thread
?
THREAD_IdToTHDB
(
thread
)
:
THREAD_Current
();
THDB
*
thdb
=
NULL
;
if
(
!
thread
)
thdb
=
THREAD_Current
();
else
if
(
HIWORD
(
thread
)
)
thdb
=
THREAD_IdToTHDB
(
thread
);
else
if
(
IsTask
(
(
HTASK16
)
thread
)
)
thdb
=
((
TDB
*
)
GlobalLock16
(
(
HANDLE16
)
thread
))
->
thdb
;
if
(
thdb
)
thdb
->
teb
.
queue
=
(
HQUEUE16
)
hQueue
;
}
...
...
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