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
5b1f3b14
Commit
5b1f3b14
authored
Nov 04, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fixed returned status for NtQueryThreadInformation's ThreadDescriptorTable
(spotted by Peter Oberndorfer).
parent
9bf51405
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
thread.c
dlls/ntdll/thread.c
+4
-2
ptrace.c
server/ptrace.c
+1
-1
No files found.
dlls/ntdll/thread.c
View file @
5b1f3b14
...
...
@@ -1150,7 +1150,7 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
if
(
!
status
)
{
if
(
!
(
reply
->
flags
&
WINE_LDT_FLAGS_ALLOCATED
))
status
=
STATUS_
INVALID_LDT_OFFSET
;
status
=
STATUS_
ACCESS_VIOLATION
;
else
{
wine_ldt_set_base
(
&
tdi
->
Entry
,
(
void
*
)
reply
->
base
);
...
...
@@ -1161,7 +1161,9 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
}
SERVER_END_REQ
;
}
if
(
status
==
STATUS_SUCCESS
&&
ret_len
)
*
ret_len
=
sizeof
(
*
tdi
);
if
(
status
==
STATUS_SUCCESS
&&
ret_len
)
/* yes, that's a bit strange, but it's the way it is */
*
ret_len
=
sizeof
(
LDT_ENTRY
);
#else
status
=
STATUS_NOT_IMPLEMENTED
;
#endif
...
...
server/ptrace.c
View file @
5b1f3b14
...
...
@@ -445,7 +445,7 @@ void get_selector_entry( struct thread *thread, int entry, unsigned int *base,
}
if
(
entry
>=
8192
)
{
set_error
(
STATUS_
INVALID_PARAMETER
);
/* FIXME */
set_error
(
STATUS_
ACCESS_VIOLATION
);
return
;
}
if
(
suspend_for_ptrace
(
thread
))
...
...
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