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
b088cc57
Commit
b088cc57
authored
Sep 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Moved GetThreadSelectorEntry to thread.c.
parent
2c491feb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
26 deletions
+22
-26
selector.c
dlls/kernel32/selector.c
+2
-26
thread.c
dlls/kernel32/thread.c
+20
-0
No files found.
dlls/kernel32/selector.c
View file @
b088cc57
...
...
@@ -559,38 +559,14 @@ LPVOID WINAPI MapSLFix( SEGPTR sptr )
return
MapSL
(
sptr
);
}
#ifdef __i386__
/***********************************************************************
* UnMapSLFixArray (KERNEL32.@)
*
* Must not change EAX, hence defined as asm function.
*/
#ifdef __i386__
__ASM_STDCALL_FUNC
(
UnMapSLFixArray
,
8
,
"ret $8"
)
#endif
/***********************************************************************
* GetThreadSelectorEntry (KERNEL32.@)
*/
BOOL
WINAPI
GetThreadSelectorEntry
(
HANDLE
hthread
,
DWORD
sel
,
LPLDT_ENTRY
ldtent
)
{
THREAD_DESCRIPTOR_INFORMATION
tdi
;
NTSTATUS
status
;
tdi
.
Selector
=
sel
;
status
=
NtQueryInformationThread
(
hthread
,
ThreadDescriptorTableEntry
,
&
tdi
,
sizeof
(
tdi
),
NULL
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
*
ldtent
=
tdi
.
Entry
;
return
TRUE
;
}
#ifdef __i386__
/***********************************************************************
* SMapLS (KERNEL32.@)
...
...
dlls/kernel32/thread.c
View file @
b088cc57
...
...
@@ -422,6 +422,26 @@ DWORD WINAPI SetThreadIdealProcessor(
}
/***********************************************************************
* GetThreadSelectorEntry (KERNEL32.@)
*/
BOOL
WINAPI
GetThreadSelectorEntry
(
HANDLE
hthread
,
DWORD
sel
,
LPLDT_ENTRY
ldtent
)
{
THREAD_DESCRIPTOR_INFORMATION
tdi
;
NTSTATUS
status
;
tdi
.
Selector
=
sel
;
status
=
NtQueryInformationThread
(
hthread
,
ThreadDescriptorTableEntry
,
&
tdi
,
sizeof
(
tdi
),
NULL
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
*
ldtent
=
tdi
.
Entry
;
return
TRUE
;
}
/* callback for QueueUserAPC */
static
void
CALLBACK
call_user_apc
(
ULONG_PTR
arg1
,
ULONG_PTR
arg2
,
ULONG_PTR
arg3
)
{
...
...
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